in reply to TagLib messages
One way is to put the specific code that is generating the warning into a block that redirects STDOUT. You'll want to ensure you limit the scope, because if any other warnings are generated, you won't see them.
#!/usr/bin/perl use warnings; use strict; sub warning { print "ERROR!!!\n"; } my $out; open my $stdout, '>', \$out or die $!; { local *STDOUT = $stdout; warning(); }
-stevieb
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: TagLib messages
by jfroebe (Parson) on Jun 24, 2015 at 19:21 UTC | |
|
Re^2: TagLib messages
by Anonymous Monk on Jun 25, 2015 at 06:34 UTC |