in reply to How do I find what directory the perl script is running from?
$0=~/^(.+[\\\/])[^\\\/]+[\\\/]*$/; $cgidir= $1 || "./"; [download]