URI のエンコード、デコード
use URI::Escape;
my $word = uri_escape("#word"); my $escaped_url = "http://exsample.org?keyword=" . $word; # -> http://exsample.org?keyword=%23word
my $unescaped_url = uri_unescape($escaped_url); # -> http://exsample.org?keyword=#word
SN 2013/06/26 22:15:51
Archives > Perl_URI_Escape.html