in reply to How to turn off warnings in used (external) modules
local $SIG{__WARN__} = sub { warn $_[0] unless $_[0] =~ /recursion/};
called before you start invoking tree crawling routines will locally suppress warnings containing the word 'recursion'. This, of course, assumes that you know, for a fact, that the warning is spurious.
|
|---|