> -Original Message-
>
>
>
> Bin Server
>
>
> Data that I need
> Data that I need
>
>
>
> I want the output to just be lines of "Data that I need" stored in a
> string, that I can work on each line one at a time, or in an array or
> something like that would be great.
I would fir
On Tue, 2 May 2006, Ryan Frantz wrote:
> > -Original Message-
> > From: Chad Perrin [mailto:[EMAIL PROTECTED]
> >
> > Please refrain from sending me two copies of an email. If it goes to
> > the list, I'll get it. There's no need to include my private email
> > address if you're also se
> -Original Message-
> From: Randal L. Schwartz [mailto:[EMAIL PROTECTED]
>
> Your other lists coddle to the beginners who can't operate their mail
> client,
> at the expense of experts who *can*. Let's not hobble the experts, or the
> experts will go away.
>
I thought this was a beginn
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
>
> > Instead of the perldoc chomp example of:
>
> It sounds as if you have ideas on how to improve the Perl
> documentation. I heartily encourage you to contribute your
> improvements by means of the p
> -Original Message-
> From: Randal L. Schwartz [mailto:[EMAIL PROTECTED]
>
> However, you didn't challenge my point. You merely made a different
> point.
> It is *not* sufficient to merely experiment. Reading the reference doc is
> mandatory for complete understanding.
That's because I
> -Original Message-
> From: Randal L. Schwartz [mailto:[EMAIL PROTECTED]
>
> For example, almost no amount of experimentation will stumble across
> how chomp actually removes $/, not just "\n".
But that's exactly why you need to try it and see. The more a document
spends on the arcane de
Great article! Thanks for the reference.
-r
> -Original Message-
> From: Chad Perrin [mailto:[EMAIL PROTECTED]
> >
> > A good way to learn how a function works is to write a small program to
> > test it. There is nothing like hands-on experience.
>
> . . . or "Apply the T.I.T.S. principl
This could have nothing to do with Perl, or it could have everything to do
with Perl. Certainly not every website uses NT authentication for
controlling web site access.
Chico - could you be more specific?
It's easy to say to put an ID and password in a database and compare
everything before per
Can you clarify "full" CGI service? Can we assume that, since you ask on a
Perl list you are looking for Perl capabilities?
www.netfirms.com offers Perl CGI scripting for free and only puts a modest
banner on the top (no popups or other annoying garbage).
-r
-Original Message-
From: MJ [
I must have missed the original thread, but this one caught my eye.
I have a script that parses firewall log files and counts the bytes that
meet a certain criteria. Usually I do this in one month at a time and I
occasionally get negative numbers as answers when I get up over a few
billion bytes.
If you want to do things yourself, check into MRTG and/or rrdtool.
Their websites and mailing lists are full of scripts to monitor all sorts of
stuff--or at least suggestions on how to do so. You'll still end of
reinventing a lot, but sometimes even the open source projects can't meet
everyone's
It should work, assuming you're not doing anything funky with installed
packages.
You might also look into Perl2Exe (http://www.indigostar.com/perl2exe.htm)
which bundles your Perl script and all necessary support files (aka
packages) into a single executable to be used for the purpose you describ
(This is one of those topics that should be in the FAQ).
Have you considered dumping your data into a CSV file with a CSV extension?
Excel will open CSVs by default.
It's the *easiest* way, but may not be what you want...
-rjf
> -Original Message-
> From: Allison Ogle [mailto:[EMAIL
I suppose it depends on what kind of processing you are doing. Can you give
us examples?
For that size of data, I would make sure you are reading the file in line by
line (as opposed to reading it to an array).
Also, anything that prints to the screen will slow things down considerably.
I know i
or you can remove the tick marks with the code...
$line =~ s/'//g ;
-rjf
> -Original Message-
> From: Hanson, Robert [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 12, 2002 09:45
> To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: RE: Regex Help
>
>
> Maybe something lik
If you're look for something Perl-specific... Open Perl IDE has syntax
hilighting, breakpoints, variable watch, etc. (And it's free).
http://open-perl-ide.sourceforge.net/
-rjf
> -Original Message-
> From: michael [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 23:36
> To
Questoin #1: Is there a function or module to convert numbers to/from
decimal, binary, and hex?
Question #2: Is there a function or module to perform binary calculations
(AND, OR, XOR)?
Russell J Foster
e. [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
DISCLAIMER: This is UNTESTED ... It's just something to try...
$OrgLine = "adshe ms0e sad qweoic,m qwod x0 vndu qiudb siu ";
While length of $OrgLine > 70 {
Match on =~ /(.{0,70})\s/
Print $1
Remove $1 from $OrgLine ;
}
Print remainder of $OrgLine;
So, the regex wou
> As of Perl 5.6.2 (not released yet), /^(.*?):/ and
> /^([^:]*):/ will have the same efficiency (read: speed). If
> you're curious, currently /^.*?:/ and /^[^:]*:/ have the same
> speed -- it's the capturing that killed .*?, but I have fixed that.
Just to be clear, it's the capturing (.*?) o
I have string, something like:
$String = "aaa bbb: fffd: sdfsdf qweqd: adfsdf qwcdsfs: qwdq qchuti:
qwiojd";
Now, I want to extract everything from the start of the string, up through
the FIRST colon ":" -- in this case "aaa bbb". My regex looks like this:
$String =~ /^(.*):/ ;
I think everyone is missing my point (or I'm just way off base on this one).
There is no *good* BEGINNERS FAQ available, is there?
The FAQs on perl.com are the same that are available in the distribution
that are available from the perldoc command --- which are next-to-useless
for a true beginne
> -Original Message-
> From: Dave Benware [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, February 02, 2002 2:12 PM
> To: Beginners perl
> Subject: Re: Perl FAQ
>
>
> Russ Foster wrote:
> >
> > Speaking of FAQs, is there a Perl FAQ...maybe something
1: Open (INFILE, "report.txt" ;
2: While () {
3: $line =~ /\"(.+?)\"/ ;
4: $YourTextBetweenTheQuotes = $1 ;
5: # Do whatever you want
6: }
7: Close (INFILE)
In English : the regular express on line 3 will grab the text between quotes
(expressed as \" ) with the expression .+?
The p
Can I assume you're really not running your perl script in DOS, but rather
in a command prompt on a Windows machine?
If the ActiveState install didn't register the file extention .pl with perl,
do it now. Make sure the default action is "open".
Then you can type:
C:\> myperlscript.pl
There is
It appears the FAQ is from the www.perl.com web site... Thanks anyways :)
Russell J Foster
Subject, Wills, & Company
e. [EMAIL PROTECTED]
v. 630-572-0240
> -Original Message-
> From: Wagner-David [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 01, 2002 4:32 PM
>
Speaking of FAQs, is there a Perl FAQ...maybe something from this newsgroup?
I have found the FAQS on www.perl.com to be completely useless to a
beginner.
Russell J Foster
Subject, Wills, & Company
e. [EMAIL PROTECTED]
v. 630-572-0240
> -Original Message-
> From: R
> > I 'm asking if there a dynamic way to generate variable names.
> Man, this question comes up a lot! :)
I was thinking the same, maybe it should be put in the FAQ...
-rjf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The only downside to this method is that an errant Perl Window can linger
around long after you think it's been closed (i.e. it won't show anywhere
expect under Task Manager).
I prefer making a copy of perl.exe (in C:\Perl\bin) and call it something
like perlw.exe. Then register perlw.exe as a Wi
Ned,
Win32::GUI allows you to display windows in Windows. See:
http://search.cpan.org/search?dist=Win32-GUI
Or Jenda's site at:
http://jenda.krynicky.cz/#Win32::GUI
There is also a Win32-GUI-Samples (on Jenda's site) which contains,
you-guessed-it, samples on how to use the module.
The docs
As far as the Windows Find tool goes (which I know wasn't your original
question)... If the file name is in quotes, i.e. "Mortgage Market*" (WITH
the quotes), it performs as expected.
As far as perl goes...
Try replacing the spaces with questions marks. Also, FYI: glob will return
an array of n
If it's a Windows machine, there is a Win32:PerfLib module for accessing
Performance monitor statistics.
See:
http://search.cpan.org/doc/GSAR/libwin32-0.18/PerfLib/PerfLib.pm
Russell J Foster
Subject, Wills, & Company
e. [EMAIL PROTECTED]
v. 630-572-0240
-Original Message-
From: Andre
Depending on the size of the file, you may not want to read the whole thing
into memory first.
So...
open(OUTFILE,">outfile.csv") ;
open(INFILE,"mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 10:30 AM
To: 'Jon Molin '; 'bc '
Cc: [EMAIL PROTECTED]
Subject: RE: csv flat file
What I
As was pointed out before, it's probably difficult (if not impossible) to
have perl access an already open telnet session.
However, I have accomplished a similar task by using perl to copy to/from
the Windows clipboard (of course, this precludes that you're using Windows).
Here's the process (in
33 matches
Mail list logo