good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: shift vs @_by shmem (Chancellor) |
on Oct 03, 2006 at 20:50 UTC ( [id://576186]=note: print w/replies, xml ) | Need Help?? |
Both ways are ok. $_[0] is actually You can also use prototypes for your subs and access your arguments inside the sub as references:
output:
--shmem _($_=" "x(1<<5)."?\n".q·/)Oo. G°\ / /\_¯/(q / ---------------------------- \__(m.====·.(_("always off the crowd"))."· ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In Section
Seekers of Perl Wisdom
|
|