2013-07-01T20:32:02
lichtkindkennt ihr etwas das mir
"project/editor/dev/sp1/kephra/lib/../../../sp3/Kephra/lib/Kephra.pm"
zu
"project/editor/dev/sp3/Kephra/lib/Kephra.pm"
auflöst. Hatte erwatet das canonpath von File::Spec das kann aber offensichtlich nicht.
Nein, das kann es nicht. In der Doku steht
Quotecanonpath
No physical check on the filesystem, but a logical cleanup of a path.
$cpath = File::Spec->canonpath( $path ) ;
Note that this does *not* collapse x/../y sections into y. This is by design. If /foo on your system is a symlink to /bar/baz, then /foo/../quux is actually /bar/quux, not /quux as a naive ../-removal would give you. If you want to do this kind of processing, you probably want Cwd's realpath() function to actually traverse the filesystem cleaning up paths like this.
Gruß
GUIfreund