Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: How do I find out which variables I'm not using?

by Aighearach (Initiate)
on Nov 06, 2004 at 03:07 UTC ( [id://405688]=note: print w/replies, xml ) Need Help??


in reply to Re^3: How do I find out which variables I'm not using?
in thread How do I find out which variables I'm not using?

Yes nice! But note that, you don't need to use warnings qw(once) because the warnings provided by the warnings pragma are lexical, and you've got them enclosed in that block. So there IS some overkill there. I do like the block, so I wouldn't call the most of it overkill.

But does NAMING the block ever tempt you to goto LABEL??? I always am tempted, and grin mischieviously, and then I have to say 100 Hail Larry's to forgive myself.


--
Snazzy tagline here

Replies are listed 'Best First'.
Re^5: How do I find out which variables I'm not using?
by Prior Nacre V (Hermit) on Nov 06, 2004 at 04:35 UTC

    Both the label and the use() statement are technically unnecessary; or, conversely, the label and the block are unnecessary. I am aware of this but use them anyway. It's all part of the defensive progamming strategy.

    I would rather <insert your own nightmarish ineffability here> than type goto LABEL :-)

    Regards,

    PN5

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-28 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found