open(READER, "file1") || die "$!"; open(WRITER, "+<file2") || die "$!"; while(<READER>) { chomp; munge($_); mutilate($_); print WRITER "$_\n"; # Note the filehandle argument to print. }
In reply to Re: writing files while reading files
by perigeeV
in thread writing files while reading files
by cal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |