2009å¹´04æ25æ¥11:42 Perl LWP::UserAgentã§decoded_contentãããç¹å®ã®Content-Typeã§æååãããã®ã§ããã¯ãã å®ã¯ä»æ¥ãURLãå ¥åãã¦ããã£ã¦ããã®URLã®ã¿ã¤ãã«ãè¿ããã¿ãããªå¦çãããã³ã¼ããä½ã£ã¦ã¾ãããã§ã大ä½ã®ãµã¤ãã¯ä½ãåé¡ãç¡ããã§ããã©ãä¸é¨ã®ãµã¤ãã§ã¯ãã¾ãåãã¦ãããªããã§ãããã ã¡ãªã¿ã«ã³ã¼ãã¯ãããªæãã§ãããããæ®éã§ãï½ #!/usr/bin/perl use strict; use warnings; use Encode qw(encode_utf8); use LWP::UserAgent; print get_title(), "\n"; sub get_title { my $ua = LWP::UserAgent->new; my $res = $ua->get("http://www
{{#tags}}- {{label}}
{{/tags}}