good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^5: I am confused by a "Learning Perl" sample showing "unshift"by choroba (Cardinal) |
on Jan 23, 2021 at 21:51 UTC ( [id://11127341]=note: print w/replies, xml ) | Need Help?? |
:-) No, as the first one changes @a, but the second one changes @b. The result is the same, but ends up in a different container.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|