Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Answer: How do I make a stack?

by TedPride (Priest)
on Jun 17, 2005 at 07:52 UTC ( [id://467608]=note: print w/replies, xml ) Need Help??


in reply to Re: How do I make a stack?
in thread How do I make a stack?

Is it significantly more efficient to say $stack[-1] than $stack[$#stack]? I know the former is more concise, but it isn't as immediately intuitive. I wish you could do something like $stack[+] instead to denote top.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-24 17:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found