in reply to Tie::File is driving me crazy
Does a bit less work:
sub popfileb { #set first row; substr $aox[0], 0, 11, 'n' x 11; foreach my $yb ( 1 .. 10 ) { foreach my $xb ( 0 .. 10 ) { #set increasing rows; substr $aox[$yb], $xb, 1, 'a'; } $aod[$yb] = $aox[$yb] . "\n"; } }
I disapprove of doing IO in a function that has nothing to do with IO, though. «$aod[$yb] = $aox[$yb] . "\n";» shouldn't be in that function.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Tie::File is driving me crazy
by Dandello (Monk) on Feb 01, 2011 at 19:25 UTC |