Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by tobyink (Abbot)
on Apr 19, 2014 at 09:14 UTC ( #1082876=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ cat Foo.pm 
    package Foo;
    2;
    $ perl -E'say eval "require Foo"'
    2
    
  2. or download this
    $ perl -E'say eval "require Foo" for 1..3'
    2
    1
    1
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2016-10-01 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (7 votes). Check out past polls.