Help for this page

Select Code to Download


  1. or download this
    use File::chdir;
    
    ...
    # now we're back where we started.  We'll do a listing to show.
    print $CWD;
    print join("\n", glob '*');
    
  2. or download this
    use File::chdir;
    my $wd = $CWD;
    ...
    # do some work.
    
    $CWD = $wd; # return to saved dir.