use strict; use Cwd; print "cwd [1] = ", cwd(), "\n"; chdir("/tmp"); print "cwd [2] = ", cwd(), "\n"; chdir("steve"); # relative! print "cwd [3] = ", cwd(), "\n"; #### cwd [1] = /export/home/foo cwd [2] = /tmp cwd [3] = /tmp/steve