- or download this
$ cat a.pl
#!/usr/bin/perl
...
$ "$HOME/a.pl" foo
/home/ikegami/a.pl
- or download this
use String::ShellQuote qw( shell_quote );
my $cmd = shell_quote($0, @ARGV);
- or download this
use String::ShellQuote qw( shell_quote );
my $cmd = shell_quote($^X, "--", $0, @ARGV);