using CPAN module without ftp

2002-12-01 Thread Ramprasad A Padmanabhan
Hello All, I had been happily installing modules with CPAN all these days and suddenly Our network is now put behind a firewall that does not allow ftp Can I use CPAN on http connections I went thru the urllist but I could not find any non-ftp source in the List Thanks Ram -- To unsubscrib

RE: Regex help!!

2002-12-01 Thread Johnstone, Colin
Thanks Danny I must be doing something else wrong, I bet its variable scope, Im just getting my head around it Colin -Original Message- From: Danny Miller [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 17:13 To: Johnstone, Colin Subject: RE: Regex help!! Your regex is rig

RE: Regex help!!

2002-12-01 Thread Beau E. Cox
Hi - Could you please explain what you get? -Original Message- From: Johnstone, Colin [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 01, 2002 8:06 PM To: '[EMAIL PROTECTED]' Subject: FW: Regex help!! Further to my previous message. after fixing the ~= I get the following. - the

FW: Regex help!!

2002-12-01 Thread Johnstone, Colin
Further to my previous message. after fixing the ~= I get the following. I know $screenOutput has a value because I see the html contained in the file Im reading on the screen its just not doing the substitution. please advise. Colin -Original Message- From: Johnstone, Colin Sent: M

Regex help!!

2002-12-01 Thread Johnstone, Colin
Hi all, Im reading in a file line by line and I want to look for the occurence of this string in $line. Is this the right way to do it. If it finds it it is to inser the value of $screenOutput in its place. if($screenOutput ne ""){ my $responsePage = ""; open(IN, "<$locationResponsePageSkin")

Re: Working with Log Files

2002-12-01 Thread John W. Krahn
Jenda Krynicky wrote: > > From: "John W. Krahn" <[EMAIL PROTECTED]> > > > > perl > > -lane'eof||m!^\d{4}/\d\d/\d\d\s+\d\d:\d\d:\d\d\s!?((@X&&print"@X"),@X= > > @F):push@X,@F' logfiles* > > Wow :-) > > It's very short and all, but ... not very readable :-) > > Let's write it as an ordinary progr

RE: how to delete space at end of line

2002-12-01 Thread Brian Engleton
Joe, >From one Perl newbie to another, buy "Mastering Regular Expressions" by Friedl. It's an O'reilly book. It is vey well written, and readable, I've actually enjoyed reading it (believe it or not)! It really helps take the mystery out of regexes. Try it out brian i guess i have to learn

Re: how to delete space at end of line

2002-12-01 Thread John W. Krahn
Joseph Paish wrote: > > thanks to all that replied. > > i guess i have to learn my way around regular expressions now. i've managed > to go this long without studying them because i find them to be cryptic (to > say the least). at least this one is fairly simple, and by deconstructing it > piec

Re: Var's in extern file

2002-12-01 Thread John W. Krahn
Jens Irrgang wrote: > > Hello, Hello, > I'm writing a script (what a surprise). > I want to use an extern file to store my variables. Like a config-file. > But with -use strict- it doesn't work. > > I've tried it with use and require. But I get always this error-message: > Global symbol "$numme

Re: Grab last line like `tail'

2002-12-01 Thread Danijel Tasov
Harry Putnam wrote: > Is there a perl equivalent to the unix `tail' command? Where I could > grab the last line from a file without having to read the whole file? There is the module File::ReadBackwards; # perl -MCPAN -e 'install File::ReadBackwards' $ perldoc File::ReadBackwards; bye, Da.Ta

Re: hashes and string

2002-12-01 Thread Rob Dixon
Simas Sorry if I'm too late, but: my $hours; my $hours_flags = "0000"; @$hours{'00' .. '23'} = split '', $hours_flags; Cheers, Rob - Original Message - From: "Simas Mockevicius" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 01, 2

Re: reverse?

2002-12-01 Thread Chris Game
In an earlier post, Rob Dixon wrote: > Chris > > scalar reverse "forwards" is the same as > scalar reverse ( "forwards" ) > It explicitly puts the call to reverse() into scalar context. Whereas > reverse scalar "forwards" is the same as > reverse ( scalar "forwards" ) > wh

Re: hashes and string

2002-12-01 Thread Simas Mockevicius
Thanx, but i have writen my code (maybe huge, but :)... for (my $a = 0; $a < 24; $a++) { my $value = substr $hours_flags, $a, $a; $Hours->{$a} = $value; } :-) Symka. > $_ = "0000"; > @h{grep~s/^.$/0$&/,0..23} = /./g; > > I hope that works > > -- > To unsubscribe

Re: How to get Page Has Expired message

2002-12-01 Thread Jenda Krynicky
From: "LRMK" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject:How to get Page Has Expired message Date sent: Sat, 30 Nov 2002 23:52:09 +0600 > I want to make visitors see "page has expired" when they click the > back button of b

Re: Working with Log Files

2002-12-01 Thread Jenda Krynicky
From: "John W. Krahn" <[EMAIL PROTECTED]> > Tim Martin wrote: > > > > My new manager wants me to learn perl and start with understanding > > logs files from 50 plus servers. I hope I have sent this message to > > the correct perl form. I have a sample of the logs below that need > > to be fixed us

Re: hashes and string

2002-12-01 Thread badchoice
$_ = "0000"; @h{grep~s/^.$/0$&/,0..23} = /./g; I hope that works -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: hashes and string

2002-12-01 Thread badchoice
$_ = "0000"; @h{0..23} = /./g; (no '00' keys) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

hashes and string

2002-12-01 Thread Simas Mockevicius
Hi, I have falowing situation: hash: my $Hours = { '00' => '1', '01' => '1', '02' => '1', '03' => '1', '04' => '1', '05' => '1', '06' => '1', ... '23' =

Grab last line like `tail'

2002-12-01 Thread Harry Putnam
Is there a perl equivalent to the unix `tail' command? Where I could grab the last line from a file without having to read the whole file? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: how to delete space at end of line

2002-12-01 Thread Beau E. Cox
Joe - Take heart - learn regexs! Soon their crypticism will turn to elegant beauty, and you will be a much more powerful perl scripter. Aloha => Beau. -Original Message- From: Joseph Paish [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 01, 2002 3:36 AM To: perl_beginner Subject: Re: h

RE: Var's in extern file

2002-12-01 Thread Beau E. Cox
Hi - Perl is not like a typical compiled language, for example, c/c++. It really doesn't have the typical 'include' functionality. The 'use' and 'require' keywords are for 'including' perl modules (normally with the .pm suffix) that reside in the @INC path (type 'perl -V' to see your @INC path). M

Re: how to delete space at end of line

2002-12-01 Thread Joseph Paish
On Friday 29 November 2002 14:28, you wrote: > Joseph Paish wrote: > > i have a data file that i am reading into an array. some of the data > > file entries have a space at the end of the line and some do not. is > > there some way that i can delete the space if it exists as i read each > > line

Var's in extern file

2002-12-01 Thread Jens Irrgang
Hello, I'm writing a script (what a surprise). I want to use an extern file to store my variables. Like a config-file. But with -use strict- it doesn't work. I've tried it with use and require. But I get always this error-message: Global symbol "$nummern" requires explicit package name at d:\hom

RE: How to get Page Has Expired message

2002-12-01 Thread Timothy Johnson
You might want to check with the cgi-beginners group. -Original Message- From: LRMK [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 30, 2002 9:52 AM To: [EMAIL PROTECTED] Subject: How to get Page Has Expired message I want to make visitors see "page has expired" when they click the

Re: Working with Log Files

2002-12-01 Thread John W. Krahn
Tim Martin wrote: > > My new manager wants me to learn perl and start with understanding logs > files from 50 plus servers. > I hope I have sent this message to the correct perl form. > I have a sample of the logs below that need to be fixed using perl. > Any ideas or suggestion will be helpful. >