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, Feb 15, 2009 at 20:32, org ch
[ 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
Win32::SqlServer
I can't get the connection timeout to be any shorter than 45 seconds.
for example
$sqlsrv->setloginproperty('ConnectTimeout',5);
doesn't seem to change anything.
Does anyone have any experience with this?
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional
On Sun Feb 15 2009 @ 9:48, Jack Butchie wrote:
> I used a tab, then a pipe, both produced the same results.
>
> LAWNS|123|GOOD
>
> LAWNS|12|GOOD
The results are the same because the test is for the whole line. If you
only want to test one field, you need a different script. For example, this
will
I used a tab, then a pipe, both produced the same results.
LAWNS|123|GOOD
LAWNS|12|GOOD
- Original Message -
From: "Gunnar Hjalmarsson"
To:
Sent: Sunday, February 15, 2009 9:16 AM
Subject: Re: Add Line break when first of a line changes
Jack Butchie wrote:
I did some fiddling wit
Jack Butchie wrote:
I did some fiddling with the list. I noticed if the second or third or
whatever column wasn't exactly the same as the previous, even though the
tex in the first field was the same, line was being added.
What's the field separator?
--
Gunnar Hjalmarsson
Email: http://www.
On Sun Feb 15 2009 @ 8:56, Jack Butchie wrote:
> I did some fiddling with the list. I noticed if the second or third or
> whatever column wasn't exactly the same as the previous, even though the
> tex in the first field was the same, line was being added. I then tested
> with only the first
Telemachus wrote:
On Sun Feb 15 2009 @ 7:25, Jack Butchie wrote:
I have a txt file of products that I would like to be able to insert a
blank line whenever the name of the product changes, to make it easier to
read. I found this srcipt hunting about but I don't know how to apply it
to the te
I did some fiddling with the list. I noticed if the second or third or
whatever column wasn't exactly the same as the previous, even though the tex
in the first field was the same, line was being added. I then tested with
only the first field in the list and it worked perfectly. The script see
Wow, fast response. Thanks everyone.
I keep getting a space where there shouldn't be. I am running this on our
test server with windows 2000. Is Mr. Windows being bad?
FENCES WHITE BAD
FENCES WHITE BAD
FENCES WHITE BAD
FENCES WHITE BAD
LAWN SEED GOOD BAD
LAWN SEED GOOD BAD
LAWN SEED GOOD BA
John W. Krahn wrote:
Kevin wrote:
Could someone please direct me to some web pages where I can go
through all deprecated perl functions and/or ways of writing perl
script? It is not easy for me to figure out whether an on-line
example is deprecated or not. I once saw:
@files = <$path_to_di
From: "Telemachus"
On Sun Feb 15 2009 @ 9:45, Octavian Râsnita wrote:
From: "John W. Krahn"
Kevin wrote:
Could someone please direct me to some web pages where I can go
through all deprecated perl functions and/or ways of writing perl
script? It is not easy for me to figure out whether an
On Sun Feb 15 2009 @ 7:25, Jack Butchie wrote:
> I have a txt file of products that I would like to be able to insert a
> blank line whenever the name of the product changes, to make it easier to
> read. I found this srcipt hunting about but I don't know how to apply it
> to the text file. I'v
I have a txt file of products that I would like to be able to insert a blank
line whenever the name of the product changes, to make it easier to read. I
found this srcipt hunting about but I don't know how to apply it to the text
file. I've tried all kinds of different things but just don't get
On Sun Feb 15 2009 @ 9:45, Octavian Râsnita wrote:
> From: "John W. Krahn"
>> Kevin wrote:
>>> Could someone please direct me to some web pages where I can go
>>> through all deprecated perl functions and/or ways of writing perl
>>> script? It is not easy for me to figure out whether an on-lin
Octavian Râsnita wrote:
From: "John W. Krahn"
Kevin wrote:
Could someone please direct me to some web pages where I can go
through all deprecated perl functions and/or ways of writing perl
script? It is not easy for me to figure out whether an on-line
example is deprecated or not. I once s
19 matches
Mail list logo