Ritter has asked for the wisdom of the Perl Monks concerning the following question:
open (HANDLE, "list.txt") or die "can't open file"; @file = <HANDLE>; foreach $row (@file) { open NEWFILELIST, ">>newlist.txt" or die "Cannot open newlist.txt for +append :$!"; print NEWFILELIST "outputting modified line from list.txt\n"; close NEWFILELIST; } close (HANDLE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How can I process large files with while(<>)?
by rob_au (Abbot) on Nov 17, 2002 at 09:18 UTC | |
by Ritter (Sexton) on Nov 17, 2002 at 10:09 UTC | |
|
Re: How can I process large files with while(<>)?
by mattr (Curate) on Nov 17, 2002 at 10:11 UTC | |
by Aristotle (Chancellor) on Nov 18, 2002 at 00:01 UTC | |
|
Re: How can I process large files with while(<>)?
by pg (Canon) on Nov 17, 2002 at 16:43 UTC |