Assignments are expressions, and expressions have return values:
my $count = () = create_and_return_a_list(); my $x = my $y = calculate_some_value();
Improve your skills with Modern Perl: the free book.
In reply to Re: scalar value of list assignment
by chromatic
in thread scalar value of list assignment
by tantalor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |