in reply to Interpolation of file handles in print
(untested)use FileHandle; my @files = ("file1", "file2", "file3", "file4", "file5", "file6", "f +ile7"); my @handles = map { my $fh = new FileHandle; $fh->open("< $_") ? $fh : undef; } @files; for $x (0..6) { my $h = $handles[$_]; print $h "$marctags[$x][3] $tagdata[$x]"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Interpolation of file handles in print
by ZlR (Chaplain) on May 17, 2005 at 10:35 UTC | |
by jhourcle (Prior) on May 17, 2005 at 11:36 UTC | |
|
Re^2: Interpolation of file handles in print
by aukjan (Friar) on May 17, 2005 at 10:27 UTC |