Esteemed monks. I'm sure I'm missing something
very simple here...
Just had to modify some code written by a co-worker. Usually I use -w to turn-on warnings in my code. The co-worker had opted for
use warnings; instead.
A warning is generated from a tiny subroutine that I needed to temporarily disable. Now usually in my code I would do
local $^W = 0; et voila - no warnings. A quick perusal of the doc led me to believe that I could say
no warnings; and that would also temporarily turn off warnings. Didn't work.
Did I miss something from RTFM? Should
no warnings; just before the offending code temporarily disable warnings a-la
local $^W = 0;?
2002-03-31 Edit by the node bunny : Changed title from "Warnings"
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.