Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Config File Placement

by skazat (Chaplain)
on May 07, 2002 at 06:10 UTC ( [id://164541]=note: print w/replies, xml ) Need Help??


in reply to Re: Config File Placement
in thread Config File Placement

this is good stuff to chew on...

Shouldn't this line:

my $config_dir = shift || $ENV{'HOME'} || ( getpwuid $> )[7]

be changed to:

my $config_dir = $_[1] || $ENV{'HOME'} || ( getpwuid $> )[7]

$_[0] seems to return the namespace of the module, or if that ain't the right term (like I know what I'm talking about) it would return something like

ProgConfig
</code>

 

-justin simoni
!skazat!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://164541]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-20 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found