Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 ( #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
  • Comment on Re^4: How do I find out which variables I'm not using?

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? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2022-06-29 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (94 votes). Check out past polls.

    Notices?