in reply to Road to a readable path

How about:

perl -MFile::Spec -le 'print for File::Spec->path'
That should work on Windows, Unix, VMS, and anything else File::Spec supports. :-P

Replies are listed 'Best First'.
Re^2: Road to a readable path
by Not_a_Number (Prior) on Apr 15, 2009 at 19:35 UTC
    That should work on Windows...

    Not quite. In one-liners, you have to use double quotes rather than single ones on Windows.

    perl -MFile::Spec -le "print for File::Spec->path"