Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Annoying warnings...

by schwern (Scribe)
on Jul 16, 2005 at 23:13 UTC ( #475514=note: print w/replies, xml ) Need Help??


in reply to Annoying warnings...

If a function has an interface you don't like, don't hack around it every time you call it and don't shut off the warning. Fix the function.

use Scalar::Util (); sub reftype ($) { return '' if !defined $_[0]; return Scalar::Util::reftype($_[0]); }

As for the "$Your::Global = 1" used only once problem, I hate that warning. I wrote up the your.pm module to work around it but its no less typing.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://475514]
help
Chatterbox?
[Corion]: My household somewhat becomes a Dell stronghold since I threw out HP for not wanting to scan documents because of an empty ink cartridge ;)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2017-03-27 13:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.