chdir '/srv/www/vhosts/domain/httpdocs/' or die "Can't chdir to documentroot: $!"; open my $h, '<', 'file_with_relative_path' or die $!; ...