Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Annoying warnings...

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


in reply to Annoying warnings...

The other annoying warning is "Name ... used only once: possible typo. +..". For this I do this song-and-dance: $DB::single = $DB::single = 1;
There's no warning if the variable already exists, which seems correct to me. This does not warn.
use DB_File; # Just some global in DB_File. $DB_File::db_version = 42;
This does warn.
use DB_File; $DB_File::wibble = 42;
PS The warning happens at compile time so the variable has to exist at compile time. This means:
require DB_File; $DB_File::db_version = 42;
does warn.


Comment on Re: Annoying warnings...
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-07-04 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls