What happens when you run the script under the debugger? The -d option is there for a reason.
Try File::Basename::fileparse().
As Occam said: Entia non sunt multiplicanda praeter necessitatem.
In reply to Re: Different behavior when parsing $0 on Solaris and Win32
by TomDLux
in thread Different behavior when parsing $0 on Solaris and Win32
by dirac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |