in reply to Push + variable argument
Your case1 push @arr, ('val', '1'); definitely does not assign 1 to a variable called $val.
I suggest taking another look at the docs on push.
hth!
In Section
Seekers of Perl Wisdom
in reply to Push + variable argument
I suggest taking another look at the docs on push.
hth!