OSDN Git Service

Use fully-qualified method name, just like other files do.
authormatusita <matusita@180c8125-5b33-4295-ad04-72a68a15b4cc>
Fri, 9 May 2008 13:38:32 +0000 (13:38 +0000)
committermatusita <matusita@180c8125-5b33-4295-ad04-72a68a15b4cc>
Fri, 9 May 2008 13:38:32 +0000 (13:38 +0000)
lib/plugins/00location_receiver

index b36a6cf..af77c8c 100644 (file)
@@ -2,12 +2,12 @@
 # keitairc/lib/plugins/00location_receiver
 # °ÌÃÖ¾ðÊóÁ÷¿®¡¢¤Î¥³¡¼¥ë¥Ð¥Ã¥¯
 #
-# $Id: 00location_receiver,v 1.6 2008-05-09 05:04:17 matusita Exp $
+# $Id: 00location_receiver,v 1.7 2008-05-09 13:38:32 matusita Exp $
 # $Source: /home/ishikawa/work/keitairc/tmp/keitairc/lib/plugins/00location_receiver,v $
 
 use Net::HTTP;
 use XML::Simple;
-use Encode qw(from_to);
+use Encode;
 
 # WGS84·Ï¤òÅϤ¹¤³¤È
 sub get_rgeocode_xml {
@@ -148,7 +148,7 @@ $plugin = {
                        $p->{address} = $xml->{prefecture}->{pname} .
                                        $xml->{municipality}->{mname} .
                                        $xml->{local}->{section};
-                       from_to($p->{address}, 'utf8', 'shiftjis');
+                       Encode::from_to($p->{address}, 'utf8', 'shiftjis');
                        return $view->render('location_receiver.html', $p);
                }
 
@@ -195,7 +195,7 @@ $plugin = {
                        $p->{address} = $xml->{prefecture}->{pname} .
                                        $xml->{municipality}->{mname} .
                                        $xml->{local}->{section};
-                       from_to($p->{address}, 'utf8', 'shiftjis');
+                       Encode::from_to($p->{address}, 'utf8', 'shiftjis');
                        return $view->render('location_receiver.html', $p);
                }
 
@@ -231,7 +231,7 @@ $plugin = {
                        $p->{address} = $xml->{prefecture}->{pname} .
                                        $xml->{municipality}->{mname} .
                                        $xml->{local}->{section};
-                       from_to($p->{address}, 'utf8', 'shiftjis');
+                       Encode::from_to($p->{address}, 'utf8', 'shiftjis');
                        return $view->render('location_receiver.html', $p);
                }