programming-examples/perl/File/Change dir with chdir.pl
2019-11-15 12:59:38 +01:00

9 lines
112 B
Perl

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