I have Perl script and need to determine the full path and filename of the script during execution. I discovered that depending on how you call the script $0 va
$0
perlfaq8 answers a very similar question with using the rel2abs() function on $0. That function can be found in File::Spec.
rel2abs()