marto9 has asked for the wisdom of the Perl Monks concerning the following question:
open(LIST,$list); open(VULNFILE, ">>output.txt"); while ($d = <LIST>) { chomp ($d); if($d =~ /OK/) { print VULNFILE "OK\n"; } } close(LIST); close(VULNFILE);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Print in TXT (while loop)
by ikegami (Patriarch) on Jul 24, 2008 at 23:03 UTC | |
Re: Print in TXT (while loop)
by gloryhack (Deacon) on Jul 24, 2008 at 23:08 UTC | |
Re: Print in TXT (while loop)
by marto9 (Beadle) on Jul 25, 2008 at 08:41 UTC | |
by ikegami (Patriarch) on Jul 25, 2008 at 13:26 UTC | |
by parv (Parson) on Jul 25, 2008 at 09:23 UTC | |
by Anonymous Monk on Jul 25, 2008 at 08:57 UTC |