3 ###APPAUTHOR: xiaoranzzz
4 ###APPDATE: 2008-09-10 01:52:04
8 ###APPEXAMPLE: iconv_test
12 #ENV variable MUST be defined somewhere,
13 #FOR perl to search modules from,
15 use lib
$ENV{XR_PERL_MODULE_DIR
};
17 use MyPlace
::Script
::Usage qw
/help_required help_even_empty/;
18 exit 0 if(help_required
($0,@ARGV));
19 #exit 0 if(help_even_empty($0,@ARGV));
22 open FI
,"-|",'iconv -l';
37 print STDERR
"Try $_ (y/n)? ";
40 last if($answer eq "n\n");
41 open FO
,"|-","iconv","-f",$_;
42 print FO
$_ foreach(@text);
44 print STDERR
"="x40
,"\n","iconv -f $_\n";