$_ = " one two three four five six"; @ary = split; print $ary[3];
$str = " one two three four five six"; $str =~ s/^\s+//; # remove leading spaces @ary = split /\s+/, $str; print $ary[3];
In reply to (ar0n: split methinks) Re: novice
by ar0n
in thread novice
by mrt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |