摘要:        
utf8 Perl编译 来启用/禁用 UTF-8(or UTF-EBCDIC) 在源代码里简洁:use utf8; no utf8; # Convert the internal representation of a Perl scalar to/from UTF-8. $num_octets...    阅读全文
        
            posted @ 2016-07-10 15:37
czcb
阅读(158)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
encode_utf8 $octets = encode_utf8($string); Equivalent to "$octets = encode("utf8", $string)". The characters in $string are encoded i...    阅读全文
        
            posted @ 2016-07-10 11:38
czcb
阅读(193)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
encode_utf8 $octets = encode_utf8($string); Equivalent to "$octets = encode("utf8", $string)". The characters in $string are encoded i...    阅读全文
        
            posted @ 2016-07-10 11:38
czcb
阅读(1143)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
[root@wx03 mojo]# cat test.pl use Mojolicious::Lite;use JSON qw/encode_json decode_json/; use Encode;no strict;use JSON; use Data::Dumper;# /foo?us...    阅读全文
        
            posted @ 2016-07-10 09:26
czcb
阅读(149)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
[root@wx03 mojo]# cat test.pl use Mojolicious::Lite;use JSON qw/encode_json decode_json/; use Encode;no strict;use JSON; use Data::Dumper;# /foo?us...    阅读全文
        
            posted @ 2016-07-10 09:26
czcb
阅读(333)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
perl 编码问题;use utf8表示代码使用UTF-8写的[root@wx03 0710]# cat a1.pl #use utf8;my $str='测试utf8字符集';print $str."\n";[root@wx03 0710]# perl a1.pl 测试utf8字符集[roo...    阅读全文
        
            posted @ 2016-07-10 09:02
czcb
阅读(270)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
perl 编码问题;use utf8表示代码使用UTF-8写的[root@wx03 0710]# cat a1.pl #use utf8;my $str='测试utf8字符集';print $str."\n";[root@wx03 0710]# perl a1.pl 测试utf8字符集[roo...    阅读全文
        
            posted @ 2016-07-10 09:02
czcb
阅读(323)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
use LWP::UserAgent;use HTTP::Date qw(time2iso str2time time2iso time2isoz);use Net::Ping; use Socket;use Net::SMTP;use LWP;use LWP::Simple;use LWP...    阅读全文
        
            posted @ 2016-07-09 21:34
czcb
阅读(180)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
use LWP::UserAgent;use HTTP::Date qw(time2iso str2time time2iso time2isoz);use Net::Ping; use Socket;use Net::SMTP;use LWP;use LWP::Simple;use LWP...    阅读全文
        
            posted @ 2016-07-09 21:34
czcb
阅读(136)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
[root@wx03 lib]# cat a1.pl #引入模块 use URI::Escape; #urlencode $encoded = uri_escape("【中均】"); print $encoded."\n";[root@wx03 lib]# perl a1.pl %E3%...    阅读全文
        
            posted @ 2016-07-09 20:39
czcb
阅读(161)
评论(0)
推荐(0)
        
        
 
                    
                 浙公网安备 33010602011771号
浙公网安备 33010602011771号