Help for this page

Select Code to Download


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