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?

In case the caller wants to pass a list of command-line args to system(), you would want to do it like this (which seems simpler anyway):
sub my_system { system( @_ ); retcode_full_text( "@_" ); }

Replies are listed 'Best First'.
Re^5: Is it possible to determine last executed command line?
by ikegami (Patriarch) on Dec 04, 2007 at 01:38 UTC
    If you care about precision as opposed to readability, the following might be more appropriate.
    sub my_system { system( @_ ); retcode_full_text( join ' ', map quotemeta, @_ ); }

    At least for non-Windows systems.