in reply to returning filename of module used

try __FILE__ instead of $0 or __PACKAGE__

Update: To be a little cleared, maybe:
my %args = ( configfile => $configdir.'/'.basename(__FILE__,'.pm').'.conf',

Replies are listed 'Best First'.
Re^2: returning filename of module used
by bengmau (Beadle) on May 16, 2005 at 19:31 UTC
    cool. I'll try that.