Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Redefining Imported Subs: of scope and no

by Anonymous Monk
on Feb 09, 2013 at 09:41 UTC ( #1017941=note: print w/ replies, xml ) Need Help??


in reply to Re: Redefining Imported Subs: of scope and no
in thread Redefining Imported Subs: of scope and no

but it doesn't work for me:

Not surprising, $/="\n" assignment is always true (and assignment ), 5.12 is not a module (maybe you wants features), and 5.12 doesn't export say (features you want, maybe)

Apparently, 'use if' can only see a global variable that exists at compile time.

nothing specific to if, that is the nature of compile-time and our/my, initialization doesn't happen until later

use constant DEBUG => !!( 0 || $ENV{PERL_DEBUG_MYAPPNAME} );
use if DEBUG , qw' Carp::Always ';


Comment on Re^2: Redefining Imported Subs: of scope and no

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2015-07-05 06:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls