Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Assigning value to the array elements

by no_slogan (Deacon)
on Oct 28, 2005 at 14:50 UTC ( [id://503668]=note: print w/replies, xml ) Need Help??


in reply to Assigning value to the array elements

Several people have offered alternatives to what you're trying to do, and that's good. But nobody has told you why you shouldn't be doing it, and that's explained by MJD.

Because I am a bad person, I'll tell you that you can do what you want by a) saying ${$vars[$i]}=$_, b) removing the "my" from $first='' and so on, and c) removing the dollar signs from @vars. But don't do that.

Log In?
Username:
Password:

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

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

    No recent polls found