diff options
author | ivan <ivan> | 2009-09-16 00:52:23 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-09-16 00:52:23 +0000 |
commit | df2b4d94d5eaef3e9635d7a519fa297d017d42ea (patch) | |
tree | 63a33ec542ac6abe390fe59b574ba74703fb8952 | |
parent | 551634efa453c7dd6d19cf7de461650cab1b1690 (diff) |
quiet warning: Subroutine Net::Ping::External::_ping_linux redefined
-rw-r--r-- | FS/FS/Mason.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/FS/FS/Mason.pm b/FS/FS/Mason.pm index 1918d9d36..877864eee 100644 --- a/FS/FS/Mason.pm +++ b/FS/FS/Mason.pm @@ -80,7 +80,9 @@ Initializes the Mason environment, loads all Freeside and RT libraries, etc. use NetAddr::IP; use Net::Ping; use Net::Ping::External; - #if CPAN #7815 ever gets fixed# if ( $Net::Ping::External::VERSION <= 0.12 ) { + #if CPAN #7815 ever gets fixed# if ( $Net::Ping::External::VERSION <= 0.12 ) + { + no warnings 'redefine'; eval 'sub Net::Ping::External::_ping_linux { my %args = @_; my $command = "ping -s $args{size} -c $args{count} -w $args{timeout} $args{host}"; @@ -88,7 +90,7 @@ Initializes the Mason environment, loads all Freeside and RT libraries, etc. } '; die $@ if $@; - #} + } use String::Approx qw(amatch); use Chart::LinesPoints; use Chart::Mountain; |