in reply to
current path in a package?
Check
perldata
for __FILE__ which gives you the full filename of the current file. File::Spec's splitpath should give you the directory that that file is in. (Or you can parse it out yourself pretty easily, if you don't care about portability.)
Comment on
Re: current path in a package?
Replies are listed 'Best First'.
Re^2: current path in a package?
by
Anonymous Monk
on Dec 28, 2010 at 07:44 UTC
Thanks a lot tilly!
[reply]
In Section
Seekers of Perl Wisdom