Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Auto Increment "magic" Inquiry

by blokhead (Monsignor)
on Jan 04, 2007 at 22:17 UTC ( [id://593035]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub foo { print \$_[0], $/ }
    
    foo($i);   # SCALAR(0x81526f0)
    foo(++$i); # SCALAR(0x81526f0)
    foo($i++)  # SCALAR(0x8151c28)
    
  2. or download this
    $i = 0;
    $i = ++$i + ++$i + $i++ + ++$i;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-03-28 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found