mikasue has asked for the wisdom of the Perl Monks concerning the following question:
Good morning! I have a question about filenames and paths in Perl. I use the the FindBin command to find my current working directory but I need to go one level up out of my current directory. Is there a command that will allow me to do that and then set the lib "." to that level so that I can share a .pm file that's in that directory?
Example
/foo/poo/current/
when I use FindBin i get /foo/poo/current/
but the file I want to use is in /foo/poo
Thanks!
MikaSue
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File Paths of Shared Packages
by AnomalousMonk (Archbishop) on Oct 14, 2011 at 16:23 UTC | |
|
Re: File Paths of Shared Packages
by Eliya (Vicar) on Oct 14, 2011 at 16:40 UTC |