クエリ付きURIの作成
URIモジュールを使うと簡単です。
use strict;
use URI;
my $uri = URI->new('http://www.example.com/test.cgi');
$uri->query_form(
foo => 'test parameter',
hoge => 'ほげ',
);
print $uri, "\n";
関連項目
・Webページの取得・URIエスケープ
・リンク先を絶対パスで取得
use strict;
use URI;
my $uri = URI->new('http://www.example.com/test.cgi');
$uri->query_form(
foo => 'test parameter',
hoge => 'ほげ',
);
print $uri, "\n";