List Info

Thread: use warnings 'wtf'




use warnings 'wtf'
user name
2006-08-10 21:19:46
Is there any documentation for what all the various use
warnings 'foo'
are? perldoc perllexwarn at least lists them but doesn't
explain what
each one does, as far as my cursory glance suggested.

Specifically I wanted to turn off a "used only
once" warning triggered
by List::MoreUtils::pairwise which aliases $a and $b. Bit
surprised
the module doesn't document this as it seems like it'd end
up warning
more often than not for the common case.

(The answer is "no warnings 'once'")

Paul
use warnings 'wtf'
user name
2006-08-10 21:37:28
# from Paul Makepeace
# on Thursday 10 August 2006 02:19 pm:

> Bit surprised
>the module doesn't document this as it seems like it'd
end up warning
>more often than not for the common case.
>
>(The answer is "no warnings 'once'")

  vi -R $(which_module warnings)

--Eric
-- 
[...proprietary software is better than gpl because...]
"There is value
in having somebody you can write checks to, and they fix
bugs."
--Mike McNamara (president of a commercial software company)
---------------------------------------------------
    http://scratchcomputing.c
om
---------------------------------------------------
use warnings 'wtf'
user name
2006-08-10 23:05:32
On Thu, Aug 10, 2006 at 10:19:46PM +0100, Paul Makepeace
wrote:
> Is there any documentation for what all the various use
warnings 'foo'
> are? perldoc perllexwarn at least lists them but
doesn't explain what
> each one does, as far as my cursory glance suggested.
Perldiag is the correct manpage for this -- each description
begins
with something like "(W once)", meaning
"no warnings 'once'" will turn
it off.  (It's actually /\([WDS] (\w+)\)/.)

   -=- James Mastros
   theorbtwo
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )