[tpm] normalizing filespec paths/directories?

Richard Dice rdice at pobox.com
Wed Jul 15 07:57:00 PDT 2009


On Wed, Jul 15, 2009 at 10:43 AM, Fulko Hew <fulko.hew at gmail.com> wrote:

> OK, my next query for a code/module recommendation is:
>
> 'What is the best/easiest way to normalize a directory from what
>  someone may have provided into something thats potentially real.'
>
> Ie. eliminate '../' scenarios.
>


Hi Fulko,

Please look into *http://search.cpan.org/~smueller/PathTools-3.30/Cwd.pm and
http://search.cpan.org/~smueller/PathTools-3.30/lib/File/Spec.pm*

Cheers,
 - Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20090715/8ff28cb1/attachment.html>


More information about the toronto-pm mailing list