in reply to Re: RFC: User subroutine hinting interface for autodie
in thread RFC: User subroutine hinting interface for autodie
fails withuse Devel::TraceCalls { Subs => [ qw! system ! ] };
Something to do with CHECK blocks. This use Devel::TraceCalls { Package => 'main'}; works, but its wraps too much. Managed to get it working with Sub::PrependSubroutine main::system not defined CHECK failed--call queue aborted.
having this built into autodie would be so much easier for novices :)BEGIN{ use Sub::Prepend 'prepend'; BEGIN { for my $name( qw[ system ] ){ prepend "$name" => sub{_logzy($name,@_)}; } } }
|
|---|