in reply to Platform independant PWD

In case you missed the excitement in the chatterbox, try

perl -MCwd -e "print cwd();"

That should work.
davemabe