org chen wrote:
Hi,
Hello,
I am coding a script to read a pure txt fiel and show it. I can't
understand why any lines in the file match the word of "[DIED]".
Thanks
Org
the txt file is like this:
Fri Feb 13 14:31:26 2009
[PROCESS]: Welcom
Dear Chas,
Thanks so much, The problem fixed now. It has annoyed me for two days.
Cheers
Org
> Date: Sun, 15 Feb 2009 20:56:51 -0500> Subject: Re: strange string match>
> From: chas.ow...@gmail.com> To: org.c...@live.com.au> CC: beginners@perl.org>
> > On Sun,
[ Please post from an email client/service that preserves newlines. ]
org chen wrote:
I am coding a script to read a pure txt fiel and show it. I can't
understand why any lines in the file match the word of "[DIED]".
Probably because of the typo I pointed out below.
while(my $line =
On Sun, Feb 15, 2009 at 20:32, org chen wrote:
snip
>while(my $line = <>){chomp( $line );
> print "current line is $line";
>if($line =~ /^[Mon|Tue|Wed|Thu|Wed|Fri|Sat|Sun]/){
>#push old data into array
Hi,
I am coding a script to read a pure txt fiel and show it. I can't understand
why any lines in the file match the word of "[DIED]".
Thanks
Org
the txt file is like this:
Fri Feb 13 14:31:26 2009[PROCESS]: Welcome to our system![ERROR]: Please