We don't bite newbies here... much | |
PerlMonks |
Re: How do I get the full path for a file?by Fastolfe (Vicar) |
on Jun 22, 2002 at 23:44 UTC ( [id://176553]=note: print w/replies, xml ) | Need Help?? |
If you have a filename, then you probably already have some "relative" path to that filename, even if we're making the assumption that you're working from the current directory. In this case, File::Spec will do the job for you with its rel2abs function: If you have a file but have no idea where it's located, you might want to use File::Find.
In Section
Seekers of Perl Wisdom
|
|