yitzle wrote:
Note: split splits on whitespace by default, so these two are the same: split /\s+/, @array; split @array;
$ perl -le' @array = "a" .. "z"; $_ = "@{[ 10 .. 40 ]}"; print for split /\s+/, @array; ' 26 split /\s+/, @array; Is the same as: split /\s+/, '26', 0; $ perl -le' @array = "a" .. "z"; $_ = "@{[ 10 .. 40 ]}"; print for split @array; ' 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 34 35 36 37 38 39 40 split @array; Is the same as: split /26/, $_, 0; 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/