my $cmdline = "$0 @ARGV";
Note that $0 doesn't work on all platforms, and that shell interpolation is already done before the perl script starts, so you can't rely on this to be 100% accurate.
In reply to Re: Extract Last Command Line Within script
by Joost
in thread Extract Last Command Line Within script
by EchoAngel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |