p4raw-id: //depot/perl@15896
our $VERSION = do { my @r = (q$Revision: 1.25 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
use Encode;
+use strict;
BEGIN {
if (ord("A") == 193) {
if ($arg{$h}){
unless (defined find_encoding($name)) {
require Carp;
- Carp::croak "Unknown encoding for $fhname, '$arg{$h}'";
+ Carp::croak "Unknown encoding for $h, '$arg{$h}'";
}
- eval qq{ binmode($h, ":encoding($arg{h})") };
+ eval qq{ binmode($h, ":encoding($arg{$h})") };
}else{
eval qq{ binmode($h, ":encoding($name)") };
}