#!/usr/bin/perl use strict; use warnings; use Cwd qw(abs_path); my $path = abs_path($0); print "$path\n";