Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: do, local and a qualified identifier?

by ysth (Canon)
on Oct 09, 2005 at 03:53 UTC ( [id://498504]=note: print w/replies, xml ) Need Help??


in reply to do, local and a qualified identifier?

I'm guessing someone might have "syntax-checked" the file with perl -c filename, and added the local as a way (not a good way, though) to suppress the "Name "Foo::bar" used only once: possible typo at foo.pl line 3." warning. (The warning isn't given when the file is invoked via do $filename because a file used that way is likely to use variables set elsewhere and set variables used elsewhere.)

Replies are listed 'Best First'.
Re^2: do, local and a qualified identifier?
by Aristotle (Chancellor) on Oct 09, 2005 at 16:50 UTC

    The only time my comments will contain anything close to swearing is next to a no warnings 'once'; line at the top of my code, which is occasionally followed by # sod off. That warning is the single most useless thing ever – it has never ever caught a single mistake of mine but has inconvenienced me plenty.

    It might be useful for coding in the absence of the vars stricture (maybe?), but that’s the one stricture I always use.

    (I suppose you can tell it annoys me…)

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 16:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found