We don't bite newbies here... much | |
PerlMonks |
Re: Is using $#array Frowned on?by shmem (Chancellor) |
on Feb 13, 2014 at 20:54 UTC ( [id://1074893]=note: print w/replies, xml ) | Need Help?? |
The special variable $# (see perlvar), which got deprecated and is not longer supported, has nothing to do with the $#array expression which denotes the last index of @array. It might well be that $# got deprecated because of such confusions...
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|