I know I can replace system via *CORE::GLOBAL::system
Actually, you can't. system isn't overridable
>perl -le"print defined(prototype('CORE::system'))?1:0" 0
If you could override readpipe, then you could override backticks, since they're the same thing, but you can't.
(Perl 5.8.8)
In reply to Re: mocking or trapping system calls
by ikegami
in thread mocking or trapping system calls
by wu-lee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |