I thought it will be usefull so I post it here..hth(my $pkgdir = __PACKAGE__) =~ s!::!/!; my ($path) = $INC{"$pkgdir.pm"} =~ m!^(.+)/!; print $path;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: get absolute path of the module inside it
by merlyn (Sage) on May 18, 2007 at 12:36 UTC | |
by Anonymous Monk on May 19, 2010 at 21:06 UTC |