I am trying to mock the backticks operator in perl version 5.8.8 . From what i have understood is, it is not possible to mock it in perl version 5.8.8. But in perl version 5.9 onward, i can easily mock the backticks operator using
*CORE::GLOBAL::readpipe = \&mock_readpipe
Is there way to mock backticks operator in perl version 5.8.8. I am able to mock system(), but not backticks.
Read complete discussion on perlmonks: mocking or trapping system calls
Also check out IPC::System::Simple.