Detecting the current directory : getcwd « File « Perl






Detecting the current directory

    
#!/usr/bin/perl -w

use Cwd;

$dir = getcwd();

print "Current directory is:\n";
print "$dir\n";

   
    
    
    
  








Related examples in the same category