See the discussion at Re: How do I get the full path to the script executing?.
In reply to Re: Perl Script own path by GrandFather in thread Perl Script own path by muzammil18