in reply to Windows - dirname(__FILE__)
use Path::Tiny qw/ path /; my $thisfile = path( __FILE__ )->realpath; my $thisdir = path( $thisfile )->parent; [download]