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
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
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
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
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")
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
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
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
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
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
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
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
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
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
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
$_ = "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]
$_ = "0000";
@h{0..23} = /./g;
(no '00' keys)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I have falowing situation:
hash:
my $Hours = {
'00' => '1',
'01' => '1',
'02' => '1',
'03' => '1',
'04' => '1',
'05' => '1',
'06' => '1',
...
'23' =
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]
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
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
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
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
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
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.
>
25 matches
Mail list logo