in reply to Re^2: overloading ">>" generates warning?
in thread overloading ">>" generates warning?
Use the source, Luke! Have you looked at the source code? :-)
my $old_warn_handler = $SIG{__WARN__}; $SIG{__WARN__} = sub { if ($_[0] !~ /^Useless use of .+ \(.+\) in void context/) { goto &$old_warn_handler if $old_warn_handler; warn(@_); } };
It looks like he basically turned off that warning globally.
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: overloading ">>" generates warning?
by Anonymous Monk on Aug 08, 2005 at 12:24 UTC |