http://qs321.pair.com?node_id=263360

Cirollo has asked for the wisdom of the Perl Monks concerning the following question:

Consider running this from the directory /home/myuser:
use File::Spec::Functions qw/rel2abs/; print rel2abs("../bob/");' __END__ /home/myuser/../bob
Shouldn't rel2abs get rid of the '..' and print "/home/bob" instead of "/home/myuser/../bob"? If that's not the expected behavior, are there any standard functions that would return "/home/bob" or will I have to write my own subroutine to get rid of the ..'s?