- or download this
my $Current_Dir = `pwd`;
print STDOUT "the current directory is $Current_Dir";
- or download this
open my $output, ">", "$Current_Dir/foo.txt";
- or download this
use Cwd;
my $Current_Dir = getcwd;
print STDOUT "the current directory is $Current_Dir\n";