Re: Problem compare string with array

2004-05-14 Thread John Doe
Charles K. Clarkson wrote: John Doe <[EMAIL PROTECTED]> Wrote: : : Hello all, : i have problem, and i don't know where is my mistake. Your first mistake is not describing the problem in your message. A good programmer realizes that help comes best if the problem is stated clearly. Your se

RE: Problem compare string with array

2004-05-14 Thread Charles K. Clarkson
John Doe <[EMAIL PROTECTED]> Wrote: : : Hello all, : i have problem, and i don't know where is my mistake. Your first mistake is not describing the problem in your message. A good programmer realizes that help comes best if the problem is stated clearly. Your second mistake was not to in

Re: Problem compare string with array

2004-05-14 Thread Rob Dixon
Hi John. See my reply in line. John Doe wrote: > > Hello all, > i have problem, and i don't know where is my mistake. > > --- > #!/usr/bin/perl use strict; # always use warnings; # usually which means that all your variables need to be declared with 'my'. > @myarra = ("test","error","blo

Re: Problem compare string with array

2004-05-14 Thread Durai
e - From: "John Doe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 14, 2004 2:13 AM Subject: Problem compare string with array > Hello all, > i have problem, and i don't know where is my mistake. > > --- > #!/usr/bin/perl > > @m

Problem compare string with array

2004-05-14 Thread John Doe
Hello all, i have problem, and i don't know where is my mistake. --- #!/usr/bin/perl @myarra = ("test","error","block"); $file = 'sorted'; # File contain records xxx.xxx.xxx # i need last symbols after last -> . open(FILE, $file); while ($data = ) { $backupdata = $data; $data =~ s/^(\S+)\.//