Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Passing package/module names to script as argument

by Amblikai (Scribe)
on Sep 13, 2018 at 12:37 UTC ( [id://1222281]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use greenObjects;
    use redObjects;
    ...
    my @objects=();
    push(@objects, greenObjects->new());
    push(@objects, redObjects->new());
    
  2. or download this
    my @objects=();
    push(@objects, $_->new()) foreach (@ARGV);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-03-28 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found