Er are you sure:
vsperl -e 'my $sa = () = split //,"foo"; print $sa'
split() is outwitting us here - it sees the empty list and optimizes accordingly.perl -e 'my $sa = do {my @tmp = split //,"foo"}; print $sa'
/J\
In reply to Re^3: Implicit split to @_
by gellyfish
in thread Implicit split to @_
by samizdat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |