Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Avoiding "only one reference" warnings

by pzbagel (Chaplain)
on Oct 15, 2003 at 00:28 UTC ( [id://299297]=note: print w/replies, xml ) Need Help??


in reply to Avoiding "only one reference" warnings

What you want is to disable the offending warning message. This can be accomplished like so:

#!/usr/bin/perl + use warnings; no warnings qw /once/; use strict;

Notice that you can't use -w because it is all or nothing, you must use the "use warnings" syntax if you want to be able to disable individual warning messages.

Check out perllexwarn.

HTH

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-20 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found