Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: imposing "strict" on an included file

by pg (Canon)
on Jul 22, 2004 at 21:48 UTC ( [id://376733]=note: print w/replies, xml ) Need Help??


in reply to imposing "strict" on an included file

Your approach does not always work. Try this piece of code:

use strict;#suppose this line is added by you no strict; use warnings; $a = "a"; &$a; sub a { print "abc"; }

This piece of code works with no problem, which disproves your way. You have to check wehther your "use strict" is cancelled in any way.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found