for (my $i=0; $i<@array1; $i++) { open (OUT, ">$$.out.$i") or die "can't open OUT\n"; print OUT ">$array1[$i]>$array2[$i]\n\n\n"; close(OUT) or die "Close error on $$.out.$i -- $!\n"; }
----
I Go Back to Sleep, Now.
OGB
In reply to Re: printing to new output files within a loop
by Old_Gray_Bear
in thread printing to new output files within a loop
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |