⭐ in reply to How do I get the full path for a file?
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.$abs_path = File::Spec->rel2abs($filename);
|
---|