I would go with core module File::Basename
use strict; use warnings; use File::Basename; my($filename, $directories, $suffix) = fileparse($0, qr/\.[^.]*/); print $filename,"\n";
In reply to Re^2: find the path of perl script
by kalyanrajsista
in thread find the path of perl script
by perlnewbieak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |