Change dir with chdir : chdir « File « Perl






Change dir with chdir

    

#! /usr/local/bin/perl
use Cwd;
$dir = cwd;
print "dir=> $dir\n";
chdir ('D:\\mydir');
$dir = cwd;

   
    
    
    
  








Related examples in the same category

1.Using chdir to change the current directory
2.Change a directory