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

Re^2: The 'eval "require $module; 1"' idiom

by tobyink (Abbot)
on Apr 20, 2014 at 02:20 UTC ( #1082929=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $MODULE_WAS_LOADED = !! eval "require 'bar.pl'";
    
  2. or download this
    my $MODULE_WAS_LOADED = 0+!! eval "require 'bar.pl'";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2016-06-28 06:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (350 votes). Check out past polls.