いつもお世話になっております。
ハックスに記載されているスクリプトを実行したいのですが、エラーとなります。
自分でも調べていますが、perl経験が浅く、原因が特定できません。
修正箇所がわからないので、修正できる方教えて下さい(;へ;)
環境は、XP2で、Activeperl 5.8.8を使用しております。
コマンドラインからused_report.pl 4915512371(←ASIN名:例:ハリーポッター)を実行すると・・・
--------コマンドラインエラー箇所--------
Global symbol "$lastPrice" requires explicit package name at C:\hoehoe\used_report.pl line 32.
Global symbol "$avgPrice" requires explicit package name at C:\hoehoe\used_report.pl line 41.
Can't find string terminator "EOF" anywhere before EOF at C:\hoehoe\used_report.pl line 44.
---------------------------------------
ちなみにブラウザ上ではページも存在し表示されております。
http://www.amazon.co.jp/exec/obidos/tg/stores/offering/list/-/4915512371/used/
以下スクリプト
////////////////////////////////////////////////////////////////
#!/usr/bin/perl
# used_report.pl
# A script to scrape Amazon, retrieve used listings, and write to a file
# Usage: perl used_report.pl <asin>
#コマンドラインからASINを取得
my $asin =shift @ARGV or die "Usage:perl used_report.pl <asin>\n";
use strict;
use LWP::Simple;
#URLを作成
my $url = 'http://www.amazon.co.jp/exec/obidos/tg/stores/offering/list'.'/-/' . $asin . '/used/';
#URLをリクエスト
my $content = get($url);
die "Could not retrieve $url" unless $content;
#変数を設定
my $i = 0;
my $totalprices = 0;
my $thisPrice = 0;
my $highPrice = 0;
my $lowPrice = 0;
#リスティングをループ
while ($content =~ m!<b class=price>\$(.*?)</b>!mgis) {
$i++;
$thisPrice = $1;
if ($thisPrice >= $lastPrice) {
$highPrice = $thisPrice;
}
if ($i == 1 || $thisPrice <= $lowPrice) {
$lowPrice = $thisPrice;
}
$totalprices += $thisPrice;
}
$avgPrice = $totalprices / $i;
#結果を表示
print <<"EOF";
Average Used Price: \$$avgPrice
Highest Price: \$$highPrice
Lowest Price: \$$lowPrice
////////////////////////////////////////////////////////////////
いつもお世話になっております。
ハックスに記載されているスクリプトを実行したいのですが、エラーとなります。
自分でも調べていますが、perl経験が浅く、原因が特定できません。
修正箇所がわからないので、修正できる方教えて下さい(;へ;)
環境は、XP2で、Activeperl 5.8.8を使用しております。
コマンドラインからused_report.pl 4915512371(←ASIN名:例:ハリーポッター)を実行すると・・・
--------コマンドラインエラー箇所--------
Global symbol "$lastPrice" requires explicit package name at C:\hoehoe\used_report.pl line 32.
Global symbol "$avgPrice" requires explicit package name at C:\hoehoe\used_report.pl line 41.
Can't find string terminator "EOF" anywhere before EOF at C:\hoehoe\used_report.pl line 44.
---------------------------------------
ちなみにブラウザ上ではページも存在し表示されております。
http://www.amazon.co.jp/exec/obidos/tg/stores/offering/list/-/4915512371/used/
以下スクリプト
////////////////////////////////////////////////////////////////
#!/usr/bin/perl
# used_report.pl
# A script to scrape Amazon, retrieve used listings, and write to a file
# Usage: perl used_report.pl <asin>
#コマンドラインからASINを取得
my $asin =shift @ARGV or die "Usage:perl used_report.pl <asin>\n";
use strict;
use LWP::Simple;
#URLを作成
my $url = 'http://www.amazon.co.jp/exec/obidos/tg/stores/offering/list'.'/-/' . $asin . '/used/';
#URLをリクエスト
my $content = get($url);
die "Could not retrieve $url" unless $content;
#変数を設定
my $i = 0;
my $totalprices = 0;
my $thisPrice = 0;
my $highPrice = 0;
my $lowPrice = 0;
#リスティングをループ
while ($content =~ m!<b class=price>\$(.*?)</b>!mgis) {
$i++;
$thisPrice = $1;
if ($thisPrice >= $lastPrice) {
$highPrice = $thisPrice;
}
if ($i == 1 || $thisPrice <= $lowPrice) {
$lowPrice = $thisPrice;
}
$totalprices += $thisPrice;
}
$avgPrice = $totalprices / $i;
#結果を表示
print <<"EOF";
Average Used Price: \$$avgPrice
Highest Price: \$$highPrice
Lowest Price: \$$lowPrice
////////////////////////////////////////////////////////////////
いつもお世話になっております。
ハックスに記載されているスクリプトを実行したいのですが、エラーとなります。
自分でも調べていますが、perl経験が浅く、原因が特定できません。
修正箇所がわからないので、修正できる方教えて下さい(;へ;)
環境は、XP2で、Activeperl 5.8.8を使用しております。
コマンドラインからused_report.pl 4915512371(←ASIN名:例:ハリーポッター)を実行すると・・・
--------コマンドラインエラー箇所--------
Global symbol "$lastPrice" requires explicit package name at C:\hoehoe\used_report.pl line 32.
Global symbol "$avgPrice" requires explicit package name at C:\hoehoe\used_report.pl line 41.
Can't find string terminator "EOF" anywhere before EOF at C:\hoehoe\used_report.pl line 44.
---------------------------------------
ちなみにブラウザ上ではページも存在し表示されております。
http://www.amazon.co.jp/exec/obidos/tg/stores/offering/list/-/4915512371/used/
以下スクリプト
////////////////////////////////////////////////////////////////
#!/usr/bin/perl
# used_report.pl
# A script to scrape Amazon, retrieve used listings, and write to a file
# Usage: perl used_report.pl <asin>
#コマンドラインからASINを取得
my $asin =shift @ARGV or die "Usage:perl used_report.pl <asin>\n";
use strict;
use LWP::Simple;
#URLを作成
my $url = 'http://www.amazon.co.jp/exec/obidos/tg/stores/offering/list'.'/-/' . $asin . '/used/';
#URLをリクエスト
my $content = get($url);
die "Could not retrieve $url" unless $content;
#変数を設定
my $i = 0;
my $totalprices = 0;
my $thisPrice = 0;
my $highPrice = 0;
my $lowPrice = 0;
#リスティングをループ
while ($content =~ m!<b class=price>\$(.*?)</b>!mgis) {
$i++;
$thisPrice = $1;
if ($thisPrice >= $lastPrice) {
$highPrice = $thisPrice;
}
if ($i == 1 || $thisPrice <= $lowPrice) {
$lowPrice = $thisPrice;
}
$totalprices += $thisPrice;
}
$avgPrice = $totalprices / $i;
#結果を表示
print <<"EOF";
Average Used Price: \$$avgPrice
Highest Price: \$$highPrice
Lowest Price: \$$lowPrice
////////////////////////////////////////////////////////////////
いつもお世話になっております。
ハックスに記載されているスクリプトを実行したいのですが、エラーとなります。
自分でも調べていますが、perl経験が浅く、原因が特定できません。
修正箇所がわからないので、修正できる方教えて下さい(;へ;)
環境は、XP2で、Activeperl 5.8.8を使用しております。
コマンドラインからused_report.pl 4915512371(←ASIN名:例:ハリーポッター)を実行すると・・・
--------コマンドラインエラー箇所--------
Global symbol "$lastPrice" requires explicit package name at C:\hoehoe\used_report.pl line 32.
Global symbol "$avgPrice" requires explicit package name at C:\hoehoe\used_report.pl line 41.
Can't find string terminator "EOF" anywhere before EOF at C:\hoehoe\used_report.pl line 44.
---------------------------------------
ちなみにブラウザ上ではページも存在し表示されております。
http://www.amazon.co.jp/exec/obidos/tg/stores/offering/list/-/4915512371/used/
以下スクリプト
////////////////////////////////////////////////////////////////
#!/usr/bin/perl
# used_report.pl
# A script to scrape Amazon, retrieve used listings, and write to a file
# Usage: perl used_report.pl <asin>
#コマンドラインからASINを取得
my $asin =shift @ARGV or die "Usage:perl used_report.pl <asin>\n";
use strict;
use LWP::Simple;
#URLを作成
my $url = 'http://www.amazon.co.jp/exec/obidos/tg/stores/offering/list'.'/-/' . $asin . '/used/';
#URLをリクエスト
my $content = get($url);
die "Could not retrieve $url" unless $content;
#変数を設定
my $i = 0;
my $totalprices = 0;
my $thisPrice = 0;
my $highPrice = 0;
my $lowPrice = 0;
#リスティングをループ
while ($content =~ m!<b class=price>\$(.*?)</b>!mgis) {
$i++;
$thisPrice = $1;
if ($thisPrice >= $lastPrice) {
$highPrice = $thisPrice;
}
if ($i == 1 || $thisPrice <= $lowPrice) {
$lowPrice = $thisPrice;
}
$totalprices += $thisPrice;
}
$avgPrice = $totalprices / $i;
#結果を表示
print <<"EOF";
Average Used Price: \$$avgPrice
Highest Price: \$$highPrice
Lowest Price: \$$lowPrice
////////////////////////////////////////////////////////////////
いつもお世話になっております。
ハックスに記載されているスクリプトを実行したいのですが、エラーとなります。
自分でも調べていますが、perl経験が浅く、原因が特定できません。
修正箇所がわからないので、修正できる方教えて下さい(;へ;)
環境は、XP2で、Activeperl 5.8.8を使用しております。
コマンドラインからused_report.pl 4915512371(←ASIN名:例:ハリーポッター)を実行すると・・・
--------コマンドラインエラー箇所--------
Global symbol "$lastPrice" requires explicit package name at C:\hoehoe\used_report.pl line 32.
Global symbol "$avgPrice" requires explicit package name at C:\hoehoe\used_report.pl line 41.
Can't find string terminator "EOF" anywhere before EOF at C:\hoehoe\used_report.pl line 44.
---------------------------------------
ちなみにブラウザ上ではページも存在し表示されております。
http://www.amazon.co.jp/exec/obidos/tg/stores/offering/list/-/4915512371/used/
以下スクリプト
////////////////////////////////////////////////////////////////
#!/usr/bin/perl
# used_report.pl
# A script to scrape Amazon, retrieve used listings, and write to a file
# Usage: perl used_report.pl <asin>
#コマンドラインからASINを取得
my $asin =shift @ARGV or die "Usage:perl used_report.pl <asin>\n";
use strict;
use LWP::Simple;
#URLを作成
my $url = 'http://www.amazon.co.jp/exec/obidos/tg/stores/offering/list'.'/-/' . $asin . '/used/';
#URLをリクエスト
my $content = get($url);
die "Could not retrieve $url" unless $content;
#変数を設定
my $i = 0;
my $totalprices = 0;
my $thisPrice = 0;
my $highPrice = 0;
my $lowPrice = 0;
#リスティングをループ
while ($content =~ m!<b class=price>\$(.*?)</b>!mgis) {
$i++;
$thisPrice = $1;
if ($thisPrice >= $lastPrice) {
$highPrice = $thisPrice;
}
if ($i == 1 || $thisPrice <= $lowPrice) {
$lowPrice = $thisPrice;
}
$totalprices += $thisPrice;
}
$avgPrice = $totalprices / $i;
#結果を表示
print <<"EOF";
Average Used Price: \$$avgPrice
Highest Price: \$$highPrice
Lowest Price: \$$lowPrice
////////////////////////////////////////////////////////////////
いつもお世話になっております。
ハックスに記載されているスクリプトを実行したいのですが、エラーとなります。
自分でも調べていますが、perl経験が浅く、原因が特定できません。
修正箇所がわからないので、修正できる方教えて下さい(;へ;)
環境は、XP2で、Activeperl 5.8.8を使用しております。
コマンドラインからused_report.pl 4915512371(←ASIN名:例:ハリーポッター)を実行すると・・・
--------コマンドラインエラー箇所--------
Global symbol "$lastPrice" requires explicit package name at C:\hoehoe\used_report.pl line 32.
Global symbol "$avgPrice" requires explicit package name at C:\hoehoe\used_report.pl line 41.
Can't find string terminator "EOF" anywhere before EOF at C:\hoehoe\used_report.pl line 44.
---------------------------------------
ちなみにブラウザ上ではページも存在し表示されております。
http://www.amazon.co.jp/exec/obidos/tg/stores/offering/list/-/4915512371/used/
以下スクリプト
////////////////////////////////////////////////////////////////
#!/usr/bin/perl
# used_report.pl
# A script to scrape Amazon, retrieve used listings, and write to a file
# Usage: perl used_report.pl <asin>
#コマンドラインからASINを取得
my $asin =shift @ARGV or die "Usage:perl used_report.pl <asin>\n";
use strict;
use LWP::Simple;
#URLを作成
my $url = 'http://www.amazon.co.jp/exec/obidos/tg/stores/offering/list'.'/-/' . $asin . '/used/';
#URLをリクエスト
my $content = get($url);
die "Could not retrieve $url" unless $content;
#変数を設定
my $i = 0;
my $totalprices = 0;
my $thisPrice = 0;
my $highPrice = 0;
my $lowPrice = 0;
#リスティングをループ
while ($content =~ m!<b class=price>\$(.*?)</b>!mgis) {
$i++;
$thisPrice = $1;
if ($thisPrice >= $lastPrice) {
$highPrice = $thisPrice;
}
if ($i == 1 || $thisPrice <= $lowPrice) {
$lowPrice = $thisPrice;
}
$totalprices += $thisPrice;
}
$avgPrice = $totalprices / $i;
#結果を表示
print <<"EOF";
Average Used Price: \$$avgPrice
Highest Price: \$$highPrice
Lowest Price: \$$lowPrice
////////////////////////////////////////////////////////////////
知り合いからメールをもらいましたがきちんとした訳が知りたくて書き込みしました。宜しくお願いします。
I will start my holidays nextweek so I want to know if is possible for me to come there.I want to come if you will have time to see me but I have a friend who lives in Osaka.I see you are there pls come to msn so we can chat.
来週から休みが始まるからそっちへ行くことが可能か知りたい。
あなたが時間あるときにきてほしい(会いに)。でも私には大阪に住んでいる友達がいる。
=ここから先がよくわかりません。教えてください。彼は怒っているような不機嫌な感じではないですよね?
あと、この解釈で合っているかも教えてください。
お願いします。
Alcohol is certainly the most commonly used drug on college campuses,but there are others.
とゆう文の訳なのですが、
アルコールは必ず通例、大学構内で薬品に使われる。しかし、その他にもある。
で、よいですか??文になってない気がするのですが。。。
もう一つ
The drugs most likely to be abused by college-age students are listed in Table 1.
とゆう文なのですが、Table 1ってなんですか??
お願いします。
携帯に電話をすると都合により電話を受けられませんとのアナウンスが流れます。。
その人に連絡がとることのできる番号を教えてくださいとメールで聞きたいのですが下記の英文でよいでしょうか?
Your modile phone doesn't accept my calls. Could you give me your available number to contact with you?