in reply to Re^3: Is it possible to determine last executed command line?
in thread Is it possible to determine last executed command line?

Or overriding the global system:
BEGIN { *CORE::GLOBAL::system = \&my_system; }

I'm not sure how to do this for backticks or pipe-open, though.