in reply to Re: split problem
in thread split problem
Except that if you assign any value past the end of an array, Perl is supposed to automatically lengthen the array to accommodate the value.
I can see no rational reason to treat an array holding the results of a split differently other arrays.use strict; use 5.10.0; my @flds; $flds[16] = undef; say 0+ @flds;
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: split problem
by kcott (Archbishop) on Nov 30, 2016 at 00:09 UTC | |
by Anonymous Monk on Nov 30, 2016 at 01:03 UTC |
In Section
Seekers of Perl Wisdom