Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: array naming

by le (Friar)
on Aug 14, 2000 at 22:43 UTC ( [id://27794]=note: print w/replies, xml ) Need Help??


in reply to array naming

If I get your question right, you need something like this:
$var = "some_stupid_name"; @{$var} = qw(foo bar baz); print @some_stupid_name;
See 'perldoc perlref' for more information.

Replies are listed 'Best First'.
RE: Re: array naming
by KM (Priest) on Aug 14, 2000 at 22:46 UTC
    Also, look at these articles as to why you shouldn't (or may not want to) do this.

    Cheers,
    KM

RE: Re: array naming
by jrsmith (Pilgrim) on Aug 14, 2000 at 22:48 UTC
    thanx this is what i needed.. i'm proud of myself actually, this is what i had done more or less as a test to see if it would work, and it turned out to be right :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2025-02-07 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (94 votes). Check out past polls.