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

Re: Array of variables

by davido (Cardinal)
on May 28, 2013 at 20:00 UTC ( [id://1035712]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @arry = ( $one, $two, $three );
    
  2. or download this
    @arry = ( \$one, \$two, \$three );
    ${$arry[1]}++; # Increment the referent's value.
    print "two is $two\n";
    print '$arry[1] is: ', $arry[1], "\n";
    print '${$arry[1]} is: ', ${$arry[1]}, "\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-16 20:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found