use Exporter;
-our $VERSION = '1.0.11';
+our $VERSION = '1.0.12';
our @ISA = qw(Exporter);
our @EXPORT = ();
our @EXPORT_OK = (
}
}
else {
- unless (open ($fh, "<:$encoding", encode('locale_fs', $file))) {
+ unless (open ($fh, "<:encoding($encoding)", encode('locale_fs', $file))) {
return %data;
}
}
}
}
else {
- unless (open ($fh, ">:$encoding", encode('locale_fs', $file))) {
+ unless (open ($fh, ">:encoding($encoding)", encode('locale_fs', $file))) {
return 0;
}
}