No, with an expression like:
my ($v, $foo, $bar) = @_;
$vthe first value in the array will be assigned @_, the $foosecond, etc. This is because parentheses impose a list context. Any redundant values will be ignored unless one of your variables is an array, in which case it will overlap all other values.
my ($v, @foo, $bar) = @_;
$v , @foo . $bar undefined.
, , :
my $v = qw(a b c);
:
Useless use of a constant (a) in void context at -e line 1.
Useless use of a constant (b) in void context at -e line 1.
, LHS, , ( ) :
'a';
'b';
my $v = 'c';
, , $v , :
my ($v) = qw(a b c);
ETA: :
f1 , , . f1 3 (). , , ( ).
: , . , sort { code here } push @array, $foo.
, , :
sub f1 {
...
}