Jcode

 view release on metacpan or  search on metacpan

Jcode.pm  view on Meta::CPAN

    }
}

#######################################
# 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.305 second using v1.01-cache-2.11-cpan-65fba6d93b7 )