$ perl -e 'BEGIN { *CORE::GLOBAL::system = sub { print "hello $_[0]\n" + } } system "foo"' hello foo
In reply to Re^2: mocking or trapping system calls
by wu-lee
in thread mocking or trapping system calls
by wu-lee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |