btobin0 has asked for the wisdom of the Perl Monks concerning the following question:
open FILE, "/home/btobin/data.txt" || die "Unable to Open: $!"; while (<FILE>) { if ($_ =~ "Perl") { $check = "$_"; } } close FILE; open FILE2, ">>/home/btobin/data2.txt" || die "Unable to Open: $!"; print FILE2 "$check\n"; close FILE2;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with Search String
by chrism01 (Friar) on Dec 06, 2007 at 06:45 UTC | |
by btobin0 (Acolyte) on Dec 06, 2007 at 07:00 UTC | |
by johngg (Canon) on Dec 06, 2007 at 10:00 UTC | |
by btobin0 (Acolyte) on Dec 07, 2007 at 11:59 UTC | |
by johngg (Canon) on Dec 07, 2007 at 12:42 UTC | |
| |
|
Re: Search Param Help
by Gangabass (Vicar) on Dec 06, 2007 at 07:51 UTC | |
|
Re: Search Param Help
by sh1tn (Priest) on Dec 06, 2007 at 06:10 UTC |