Re: performance of splice v. split

2003-03-15 Thread John W. Krahn
Serge Shakarian wrote: > > thank you for your reply. I think I should have been a bit more descriptive > in what I am trying to do. > > The log file is about 1.2 - 1.5 GB per 24 hours. Each record is look like > this: > Mon 10 Mar 2003 12:07:55 PM EST (1047316075.181206) > [EMAIL PROTECTED]:<16.0

RE: performance of splice v. split

2003-03-15 Thread SHAKARIAN,SERGE (HP-NewJersey,ex1)
Ram, thank you for your reply. I think I should have been a bit more descriptive in what I am trying to do. The log file is about 1.2 - 1.5 GB per 24 hours. Each record is look like this: Mon 10 Mar 2003 12:07:55 PM EST (1047316075.181206) [EMAIL PROTECTED]:<16.0>:L4:S14 req=/script-root-tran/acc

Re: perl cron (Slightly off subject)

2003-03-15 Thread Brett W. McCoy
Gregg R. Allen wrote: I finally got my perl script that checks our POP3 server working (thanks everyone), but I want to run it every 5 minutes eventually, but every minute during testing. How do I set the crontab entry for periodic minutes? I am running "Yellow Dog Slackintosh" (Linux PPC). S

perl cron (Slightly off subject)

2003-03-15 Thread Gregg R . Allen
I finally got my perl script that checks our POP3 server working (thanks everyone), but I want to run it every 5 minutes eventually, but every minute during testing. How do I set the crontab entry for periodic minutes? I am running "Yellow Dog Slackintosh" (Linux PPC). Thanks in advance, Gr

Re: I thought fcntl would take care if barewords

2003-03-15 Thread Rob Dixon
Erwin Zavala wrote: > #!/user/bin/perl > > use strict; > use fcntl; > > my $path1 = "export.txt"; > my $path2 = "export3.txt"; > sysopen(openFile, $path1, O_RDONLY) || die $!; > sysopen(writeFile, $path2, O_WRONLY|O_CREAT ) || die $!; > while() > { > print writeFile $1, $2 ,"n\n" if m/(\w+\s)(\w+\s

Re: Compiling Perl?

2003-03-15 Thread Janek Schleicher
Brian Jefferies wrote at Fri, 14 Mar 2003 10:47:52 -0500: >Is there a general consensus regarding compiling perl into binary > executable? Please read also perldoc -q compile It's not cgi specific, so the other responses are perhaps more useful for you, but it's the general answer. > I

I thought fcntl would take care if barewords

2003-03-15 Thread Erwin Zavala
#!/user/bin/perl use strict; use fcntl; my $path1 = "export.txt"; my $path2 = "export3.txt"; sysopen(openFile, $path1, O_RDONLY) || die $!; sysopen(writeFile, $path2, O_WRONLY|O_CREAT ) || die $!; while() { print writeFile $1, $2 ,"n\n" if m/(\w+\s)(\w+\s)/; } _

Re: (Is this normal) www.techieindex.com

2003-03-15 Thread Wiggins d'Anconia
R. Joseph Newton wrote: Voodoo Raja wrote: hey Gues what there is no perl on www.techieindex.com and If it does then I guess there should be a survey for that site.. asap. coz i was just not able to locate perl stuff on that site. expecting a reply thanx Sam Hi Sam, If you have some iss

Fun with Regexes

2003-03-15 Thread Pete Emerson
Is there an elegant way to make sure that a string contains a list of strings, but not necessarily in any particular order? Here's how I'm doing it: #!/usr/bin/perl -w use strict; my @strings=qw(onetwothree threeonetwo onetwonope); my @matches=qw(one two three); foreach my $string (@strings) {

Re: Compiling Perl?

2003-03-15 Thread beau
On 15 Mar 2003 at 8:52, zentara wrote: > On Fri, 14 Mar 2003 10:47:52 -0500, [EMAIL PROTECTED] (Brian > Jefferies) wrote: > > > Is there a general consensus regarding compiling perl into binary > >executable? > > > > > >I love perl, but I don't understand the sense in re-compiling the same

Re: Compiling Perl?

2003-03-15 Thread zentara
On Fri, 14 Mar 2003 10:47:52 -0500, [EMAIL PROTECTED] (Brian Jefferies) wrote: > Is there a general consensus regarding compiling perl into binary >executable? > > >I love perl, but I don't understand the sense in re-compiling the same cgi >script (for example) 10,000 times a day. > >I have

Re: Capture wget progress bar

2003-03-15 Thread Brett W. McCoy
Robert Rendler wrote: Currently I'm unable to capture wget's progress bar (the one with the arrow). It doesn't appear to be using STDOUT or STDERR. So this his not working: open WGET, "wget foo.moo 2>&1 |" or die "Couldn't run wget: $!\n"; while(){ It's likely that wget is writing directly to the

Re: performance of splice v. split

2003-03-15 Thread Rob Dixon
Serge Shakarian wrote: > > > When parsing a large log file which one would be better for > performance splice or split? Every line is in a standard format and I > would be using splice/split to get 12 out of 20 space separeted words > in each line. Thanks in advance. > Serge Hello Serge. If you'

Re: why does sysopen fails to create a file?

2003-03-15 Thread Rob Dixon
Erwin Zavala wrote: > It is failing at line 5 > > #!/user/bin/perl use strict;# always! use Fcntl; > $path1 = "export.txt"; > $path2 = "export3.txt"; > sysopen(openFile, $path1, O_RDONLY) || die $!; > sysopen(writeFile, $path2, O_WRONLY | O_CREAT ) || die $!; > while() > { > print writeF

Re: Capture wget progress bar

2003-03-15 Thread Robert Rendler
On Sat, 15 Mar 2003 20:53:27 +1100 Robert Rendler <[EMAIL PROTECTED]> wrote: > I would very much like to use the actual graph while the files are > downloading. That's the whole point I'm using wget instead of LWP. Well the > graph and ease of resuming. Oops, s/graph/progress bar/ -- To unsubsc

Re: Capture wget progress bar

2003-03-15 Thread Robert Rendler
On Sat, 15 Mar 2003 15:11:07 +0530 Ramprasad <[EMAIL PROTECTED]> wrote: > > Why dont you use wget -b and then read the file wget.log I would very much like to use the actual graph while the files are downloading. That's the whole point I'm using wget instead of LWP. Well the graph and ease of re

Re: Capture wget progress bar

2003-03-15 Thread Ramprasad
Robert Rendler wrote: Currently I'm unable to capture wget's progress bar (the one with the arrow). It doesn't appear to be using STDOUT or STDERR. So this his not working: open WGET, "wget foo.moo 2>&1 |" or die "Couldn't run wget: $!\n"; while(){ Why dont you use wget -b and then read the file wg

Re: apache error

2003-03-15 Thread Scott R. Godin
Pete Emerson wrote: > The CGI module is fantastic for doing things like printing headers, > parsing forms, etc. I don't think I've written a CGI script without it. > Your missing the header. See 'perldoc CGI'. > > #!/usr/bin/perl -w > > use strict; # Highly recommended! > use CGI qw(:standard);

Capture wget progress bar

2003-03-15 Thread Robert Rendler
Currently I'm unable to capture wget's progress bar (the one with the arrow). It doesn't appear to be using STDOUT or STDERR. So this his not working: open WGET, "wget foo.moo 2>&1 |" or die "Couldn't run wget: $!\n"; while(){ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands