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

Derive a variable name from a variable?

by mavericknik (Sexton)
on Dec 17, 2015 at 04:38 UTC ( #1150579=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @names = qw(adam jake john betty);
    
  2. or download this
    my @adambooks;
    my @jakebooks;
    .
    .
    .
    
  3. or download this
    foreach (@names) {
        my $cur_name = $_;
        &modify($cur_name, "Their correspinding array")
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2023-04-02 09:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?