command name

@ARGV contains the command line arguments but not including the command name.
How can I get command name inside script?

Thanks
hzhengAsked:
Who is Participating?
 
alamoConnect With a Mentor Commented:
$0 has the name of the script.

$^X is the name that the Perl binary itself was executed as.

Hope this answers your question, good luck!
0
All Courses

From novice to tech pro — start learning today.