[tpm] normalizing filespec paths/directories?

Fulko Hew fulko.hew at gmail.com
Wed Jul 15 08:01:22 PDT 2009


On Wed, Jul 15, 2009 at 10:51 AM, Dave Doyle <dave.s.doyle at gmail.com> wrote:

> although I haven't tested:
>
> use Cwd;
>
> my $real_path = abs_path('/home/production/../../etc/password');
>
> I THINK it resolves symbolic links to the real path as well but you'd have
> to check that.


Thanks.  I just found it myself too.
This is exactly what I needed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20090715/2c9ab69a/attachment.html>


More information about the toronto-pm mailing list