1. Perl
  2. Module
  3. here

Cwd - Get the path of the current directory

You can use the Cwd module to get the path of the current directory.

# Loading modules and importing functions
use Cwd 'getcwd';

Use the getcwd function to get the path of the current directory.

# Get the path of the current directory
my $curdir = getcwd;

Related

Related Informatrion