Help for this page

Select Code to Download


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