Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: use of "use X"

by ikegami (Patriarch)
on Jan 18, 2012 at 06:32 UTC ( #948483=note: print w/replies, xml ) Need Help??


in reply to Re: use of "use X"
in thread use of "use X"

Using eval would delay the directive to runtime, but it needs to be active at runtime to affect code.

>perl -e"eval 'use warnings; 1' or die $@; print undef;" >perl -e"use warnings; print undef;" Use of uninitialized value in print at -e line 1.

And you can't wrap it in a BEGIN because that would introduce a lexical scope.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2022-08-10 02:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?