in reply to mocking or trapping system calls
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: mocking or trapping system calls
by wu-lee (Beadle) on May 09, 2008 at 18:16 UTC | |
by almut (Canon) on May 09, 2008 at 18:52 UTC |