Sure. Try $0. :)
-----Original Message-----
From: Charles Lu [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 2:31 AM
To: [EMAIL PROTECTED]
Subject: Special Variable for name of the running script
When you run a perl script from command line, you can often retrieve the
arguments through the special variable @ARGV.
If you type the following:
perl myscript.pl input.txt output.txt
on a commandline, the value of $ARGV[0] will be input.txt,
$ARGV[1] will be output.txt.
My question is is there perl special variable that stores the name of the
actualy script that is running? In other words, which variable, if any
holds the value "myscript.pl"?
thanks
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com