Ignore:
Timestamp:
2001-03-21T15:01:08+12:00 (23 years ago)
Author:
sjboddie
Message:

Had another go at suppressing the "subroutine redefined" warnings as
"no warnings" doesn't work on older versions of perl. Now use the
$SIG{WARN} variable to do the job instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/BasPlug.pm

    r2084 r2219  
    2525
    2626package BasPlug;
     27
     28# suppress the annoying "subroutine redefined" warning that various
     29# plugins cause under perl 5.6
     30$SIG{__WARN__} = sub {warn($_[0]) unless ($_[0] =~ /Subroutine\s+\S+\sredefined/)};
     31
    2732use Kea;
    2833use parsargv;
Note: See TracChangeset for help on using the changeset viewer.