Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Where to keep images so a module can find them

by ozone (Friar)
on Sep 04, 2006 at 16:11 UTC ( #571116=note: print w/replies, xml ) Need Help??


in reply to Where to keep images so a module can find them

Any relative path, such as "Images/foo.png", will use Perl's current working directory, and if the module happens to exist in the same directory, then it will find the file.

My point is that it's probably more useful (and better practice) to put images into the user's home dir, or a system dir ('/usr/local/xyz'). Then your module can run through a list of default dirs (~/.xyx/Images, /usr/local/xyz/Images etc) until it finds the file it's looking for.

  • Comment on Re: Where to keep images so a module can find them

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2022-05-28 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (98 votes). Check out past polls.

    Notices?