#!C:\Program Files\Perl\bin\perl.exe use strict; use warnings; use Cwd qw(abs_path); my $path = abs_path($0); print "$path\n"; exit(1);