http://qs1969.pair.com?node_id=11144182


in reply to Re: In my perl script one of the variable it is giving an extra dot.
in thread In my perl script one of the variable it is giving an extra dot.

Note that the rel2abs approach will only give the same result if / is the CWD. Otherwise it's a different result:

#!/usr/bin/env perl use strict; use warnings; use File::Spec; chdir '/tmp'; my $path = './root/git/common/crt_del/cert/DEFAULT.pem'; $path = File::Spec->rel2abs ($path) unless File::Spec->file_name_is_absolute ($path); print "$path\n";

🦛