Hi,
I wrote some scripts using File::Find's find function like this
find (\&process, $path)
I get $path either from the command line or from a default string. Now how can I enable my scripts to deal with relative pathnames? Right now, the script complains not being able to process (open etc.) the files if I do not specify an absolute path.
Is there a simple way to convert relative paths to absolute ones?
Sure is:
use File::Spec; my $abs_path = File::Spec->rel2abs( $rel_path );
Hope that helps.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>