Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Is using $#array Frowned on?

by shmem (Chancellor)
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'

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074893]
help
Chatterbox?
[Eily]: I'll add that to my résumé
Discipulus what's SioB?
[Eily]: Saints in our Book
[Discipulus]: ..mmhh: no warnings; does not affect carp.. how to suppress carp's output in tests?
[margeas]: What is the average response time of gods ?
[1nickt]: @CARP_NOT

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2018-01-22 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (233 votes). Check out past polls.

    Notices?