a LIST in scalar context is the last element from the list.
Not always:
sub return_list { return 3, 2, 1 } my $result = return_list(); print "$result\n"; $result = 3, 2, 1; print "$result\n";
In reply to Re^3: odd =>behavior
by chromatic
in thread odd =>behavior
by tcf03
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |