leons has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w my @FHlist; open FH1, ">./1.txt"; open FH2, ">./2.txt"; open FH3, ">./3.txt"; push @FHlist,*{FH1},*{FH2},*{FH3}; foreach my $FH (@FHlist) { print $FH "Don't eat the yellow snow\n"; } print "@FHlist\n"; close FH3; close FH2; close FH1;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Opening multiple filehandlers
by btrott (Parson) on Apr 06, 2001 at 11:28 UTC | |
by leons (Pilgrim) on Apr 06, 2001 at 12:05 UTC | |
(dkubb) Re: (2) Opening multiple filehandlers
by dkubb (Deacon) on Apr 06, 2001 at 13:22 UTC | |
Re: Opening multiple filehandlers
by AgentM (Curate) on Apr 06, 2001 at 21:00 UTC | |
by extremely (Priest) on Apr 06, 2001 at 23:34 UTC | |
Re: Opening multiple filehandlers
by stefan k (Curate) on Apr 06, 2001 at 12:25 UTC |