in reply to Disabling Specific Warnings

$SIG{__WARN__} = sub { warn $_[0] unless $_[0] =~ /portable/ };
(Note: "no warnings 'portable';" is better, but does not work when the warnings pragma is not available.)

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.

Replies are listed 'Best First'.
Re: Re: Disabling Specific Warnings
by Joost (Canon) on Sep 11, 2002 at 14:36 UTC
    Preventing that sort of constructs is ofcourse why warnings was invented in the first place.
    -- Joost downtime n. The period during which a system is error-free and immune from user input.