1
我有一個項目我工作的學校,但我似乎在這裏得到一個錯誤......perl的獲得與LWP網頁錯誤:簡單
我得到「無法調用在‘內容’在第5" 行未定義的值
use LWP::Simple;
for(my $id=0;$id<55;$id++)
{
my $response = get("http://www.gamereplays.org/community/index.php?act=medals&CODE=showmedal&MDSID=" + $id);
my $content = $response->content;
for(my $id2=0;$id2<10;$id2++)
{
$content =~ /<img src="http:\/\/www\.gamereplays.org\/community\/style_medals\/(.*)$id2\.gif" alt=""\/>/;
$url = "http://www.gamereplays.org/community/style_medals/" . $1 . $id2 . ".gif";
getstore($url, $1 . $id2 . ".gif");
}
}
嘗試使用`dals&CODE = showmedal&MDSID =「。$ id);` – 2011-01-12 05:30:33