You can hide the built-in system and use a user defined one like so:
use subs 'system'; *main::system = sub { 0 };
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to Re: Mocking system() call in Unit Test File for a Perl Module
by jeffa
in thread Mocking system() call in Unit Test File for a Perl Module
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |