![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Where to keep images so a module can find themby ozone (Friar) |
on Sep 04, 2006 at 16:11 UTC ( #571116=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|