#!./perl
# $Id: piconv,v 1.27 2003/06/18 09:29:02 dankogai Exp $
#
use 5.8.0;
use strict;
use Encode ;
my %Opt;
help()
GetOptions(\%Opt,
'from|f=s',
'to|t=s',
'list|l',
'string|s=s',
'check|C=i',
'c',
'perlqq|p',
'debug|D',
'scheme|S=s',
'resolve|r=s',
'help',
);
print <<"EOT";
}
# default
while(<>){
};
# step-by-step
while(<>){
print $encoded;
};
# NI-S favorite
while(<>){ print; }
} else { # won't reach
}
sub list_encodings{
exit 0;
}
sub resolve_encoding {
exit 0;
} else {
exit 1;
}
}
sub help{
my $message = shift;
$name [-f from_encoding] [-t to_encoding] [-s string] [files...]
$name -l
-l,--list
-r,--resolve encoding_alias
-f,--from from_encoding
-t,--to to_encoding
-D,--debug show debug information
-S,--scheme scheme use the scheme for conversion
exit;
}
piconv -l
piconv [-C N|-c|-p]
piconv -D ...
piconv -h
=over 4
for a full discussion.
=item -c
=over 4
=back
Like the I<-D> option, this is also for Encode hackers.
=back
=head1 SEE ALSO
L<iconv/1>
L<locale/3>
L<Encode>
L<Encode::Supported>
L<Encode::Alias>
L<PerlIO>
=cut