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

Re^2: use of "use X"

by quester (Vicar)
on Jan 18, 2012 at 06:50 UTC ( [id://948488]=note: print w/replies, xml ) Need Help??


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

I think what you were looking for is

$ perl -E 'BEGIN {our $debug = 1;} use if $debug // 0, warnings; say u +ndef' Use of uninitialized value in say at -e line 1.

although I would be inclined to go with an environment variable instead, to avoid having to edit the source code:

$ debug=1 perl -E 'use if $ENV{debug} // 0, warnings; say undef' Use of uninitialized value in say at -e line 1.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2026-02-18 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.