use Jcode; .. Jcode::convert(\$_,'euc'); .... # <- &jcode'convert(*_, 'euc');&jcode'convert(*_, 'euc'); は jcode::convert(\$_,'euc'); とも書けたはずだから、 小文字が大文字になっただけの気がする。
jcode::convert(\$str, 'jis', jcode::getcode(\$str), "z"); print $str;と書く代りに、
print jcode($str)->h2z->jis;と書ける(そうだ)。
$header = jcode($str)->mime_decode;
perldoc Jcodeとすれば、英語で使い方の説明が表示される。例えば次のような表示がある。
# traditional Jcode::convert(\$str, $ocode, $icode, "z"); # or OOP! print Jcode->new($str)->h2z->tr($from, $to)->utf8;しかし、例えばこの z の意味は jcode.pl の方にしか書いてない気がする。 jcode.pl より
Optional parameter $option is used to specify optional conversion method. String "z" is for JIS X0201 KANA to X0208 KANA, and "h" is for reverse.
Your perl and your Config.pm seem to have different ideas about the architecture they are running on. Perl thinks: [powerpc-netbsd] Config says: [powerpc-netbsd] This may or may not cause problems. Please check your installation of perl if you have problems building this extension.(03/07/2001) 最新は 0.79 だけれど pkgsrc だと 0.76 が入った。これは僕の pkgsrc が古いせい。 01/16/2002 に 0.79 になっている。
makoto@u 9:16:11/020307(...japanese/p5-jcode)# pkg_info p5-jcode Information for p5-jcode-2.13: Comment: Perl library for Japanese character code conversion Requires: perl>=5.0 Description: jcode.pl is Perl library for Japanese character code conversion. It supports translation of each JIS, EUC, Shift JIS texts, and automatically recognizes the encode-method of the target text files. Document is in jcode.pl itself as comment. And jcode.pl-history file (in Japanese) might help you: ftp://ftp.iij.ad.jp/pub/IIJ/dist/utashiro/perl/jcode.pl-history ftp://ftp.sra.co.jp/pub/lang/perl/sra-scripts/jcode.pl-history Homepage:
Last Update
10:53:44 03/12/08 Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) Apache/2.4.46 (Unix) PHP/7.4.15(since 2002/03/09)