#!/usr/bin/perl -- { # you get no indication that the problem is that PerlIO/encoding.pm # is missing, same when you rename PerlIO/encoding.pm $INC{'PerlIO/encoding.pm'}=__FILE__; open my($in), '<:encoding(utf8)', __FILE__ or die int($!)," $!\n",int($^E)," $^E "; close $in; }