[EMAIL PROTECTED] wrote:
--- yitzle <[EMAIL PROTECTED]> wrote:
Note: split splits on whitespace by default, so these two are the same:
split /\s+/, @array;
split @array;
Not right.You split a string,not an array or a list.
all below are wrong:
It depends what you mean by "wrong".
split @array;
Assuming that @array contains 6 elements, is parsed by perl as:
split /6/, $_, 0;
split (11,22,33);
split( /11/, '22', 33 );
split $string;
split /$string/, $_, 0;
see `perldoc -f split`.
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/