bengmau has asked for the wisdom of the Perl Monks concerning the following question:
when I want to refer to a confile of the same name as the .pl file. Now when I put this code into a module, it doesn't grab the module name but the calling perl script name. How can I get the module filename when calling inside the module itself?my %args = ( configfile => $configdir.'/'.basename($0,'.pm').'.conf',
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: returning filename of module used
by jdporter (Paladin) on May 16, 2005 at 19:17 UTC | |
by Tanktalus (Canon) on May 17, 2005 at 14:31 UTC | |
|
Re: returning filename of module used
by davidrw (Prior) on May 16, 2005 at 19:22 UTC | |
by bengmau (Beadle) on May 16, 2005 at 19:31 UTC | |
|
Re: returning filename of module used
by jeffa (Bishop) on May 16, 2005 at 19:16 UTC | |
|
Re: returning filename of module used
by ikegami (Patriarch) on May 16, 2005 at 20:02 UTC |