in reply to Re: Surprise: scalar(($x, $y) = split)
in thread Surprise: scalar(($x, $y) = split)
It's not the parenthesis that helps there but
$ perl -e 'warn 0+(($x, $y) = split " ", "foo bar\n");' 3 at -e line 1. $ perl -e 'warn 0+(($x, $y) = split " ", "foo bar");' 2 at -e line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Surprise: scalar(($x, $y) = split)
by roboticus (Chancellor) on Oct 28, 2011 at 14:21 UTC |