Jcode
view release on metacpan or search on metacpan
}
}
#######################################
# Constructors
#######################################
sub new{
my $class = shift;
my $self = {};
bless $self => $class;
defined $_[0] or $_[0] = '';
$self->set(@_);
}
sub set{
my $self = shift;
my $str = $_[0];
my $r_str = (ref $str) ? $str : \$str;
my $code = $_[1] if(defined $_[1]);
my $icode = $code || getcode($r_str) || 'euc';
( run in 0.423 second using v1.01-cache-2.11-cpan-3b35f9de6a3 )