Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Adding a number from scalar variable to array name

by hgolden (Pilgrim)
on Sep 08, 2006 at 18:58 UTC ( [id://572068]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Adding a number from scalar variable to array name
in thread Adding a number from scalar variable to array name

I agree that you probably don't want to use a variable as a variable name, but you still have to fix your problem. Have you considered using an array of arrays? You can define elements as $array[1][2]=(whatever) which would be the third element of the second array (0 being the first index).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2025-05-24 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.