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

Re^2: Use with variable

by tomhukins (Curate)
on Sep 08, 2004 at 13:18 UTC ( #389343=note: print w/replies, xml ) Need Help??


in reply to Re: Use with variable
in thread Use with variable

Module *must* be a bareword
my $module = "CGI"; require $module;

That's an interesting bareword you use. ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://389343]
help
Chatterbox?
[choroba]: Be kind to people using old Perl with newer version of the module
[Corion]: But why not simply specify 'List::Util' => 1.29 in your prerequisites? People might install a more recent version of the module into their Perl
[Corion]: (what choroba said)
[Discipulus]: ah! simpler and cleaner
[Discipulus]: thanks! use List::Util 1.29 qw(pairmap ... just works!
Discipulus is preparing another of his CUFP..

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2017-05-25 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?