Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Path-Class CPAN distribution.

Maintainer(s)' notes

I prefer that bugs & patches are filed on GitHub rather than on RT: https://github.com/kenahoo/Path-Class/issues. Thanks.

Report information
The Basics
Id: 43545
Status: open
Priority: 0/
Queue: Path-Class

People
Owner: Nobody in particular
Requestors: IKEGAMI [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Download (untitled) / with headers
text/plain 537b
According to the documentation for Path::Class::Dir, $dir->parent "Returns the parent directory of $dir. Note that this is the logical parent, not necessarily the physical parent." The need to mention this is a clear indication there should be a means of getting the physical path ("->realpath") for files and dirs. Example use: use Path::Class qw( file ); use lib file($0)->realpath->dir->subdir('lib'); In the example, realpath allows us to find the correct library directory even when the program is launched via a symlink.
Subject: Add a means of getting the physical path (->realpath)
Sorry for the lack of a subject


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.