For the sake of completness: there's also the %INC variable. If, for instance, you included a module with "use Foo::Bar", then the value of $INC{"Foo/Bar.pm"} would be the absolute or relative path of the module. I'm not sure if the resulting value is always the same as __FILE__.