Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Is using $#array Frowned on?

by shmem (Canon)
on Feb 13, 2014 at 20:54 UTC ( #1074893=note: print w/ replies, xml ) Need Help??

in reply to Is using $#array Frowned on?

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'

Comment on Re: Is using $#array Frowned on?
Select or Download Code
Replies are listed 'Best First'.
Re^2: Is using $#array Frowned on?
by Kenosis (Priest) on Feb 13, 2014 at 21:00 UTC

    Good $#/$#array distinction.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074893]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2015-10-07 11:25 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (179 votes), past polls