yitzle wrote:

--- yitzle <[EMAIL PROTECTED]> wrote:

Note: split splits on whitespace by default, so these two are the same:
split /\s+/, @array;
split @array;

Technically, the two /are/ the same, and my point is valid. The fact
that I used an array instead of a string was a mistake. I blame it on
the lack of sleep caused by university.

But they're not the same Yitzle as I pointed out in my earlier reply. The
default behaviour of split is achieved by the special case

 split ' ', $string;

which does something slightly different from

 split /\s+/, $string;

Good luck at university!

Rob

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to