[EMAIL PROTECTED] wrote: > Hi, > > Is there a function in Perl that will convert a > relative path to an absolute path? Does anybody > have such a script? Or, if you can point me to where > I should start looking for writing my own script, I will apprciate it.
Look in Cwd.pm (snippet from module): use Cwd 'abs_path'; # aka realpath() print abs_path($ENV{'PWD'}); use Cwd 'fast_abs_path'; print fast_abs_path($ENV{'PWD'}); -- ,-/- __ _ _ $Bill Luebkert ICQ=162126130 (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] / ) /--< o // // http://dbecoll.tripod.com/ (Free site for Perl) -/-' /___/_<_</_</_ Castle of Medieval Myth & Magic http://www.todbe.com/ _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs