Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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
  • 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?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-06-13 19:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.