getting another website data to manipulate it's value in perl
Posted
by
aun ali
on Stack Overflow
See other posts from Stack Overflow
or by aun ali
Published on 2012-10-02T09:29:20Z
Indexed on
2012/10/02
9:37 UTC
Read the original article
Hit count: 214
use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
our @a=param(src="http://fxrates.forexpros.com/index.php?pairs_ids=1525=last_update");
print header(),start_html('results.pl');
$a=http://fxrates.forexpros.com/index.php?pairs_ids=1525=last_update;
'<iframe frameborder="0" scrolling="no" height="95" width="213" allowtransparency="true" marginwidth="0" marginheight="0" src="http://fxrates.forexpros.com/index.php?pairs_ids=1525;&header-text-color=%23FFFFFF&curr-name-color=%230059b0&inner-text-color=%23000000&green-text-color=%232A8215&green-background=%23B7F4C2&red-text-color=%23DC0001&red-background=%23FFE2E2&inner-border-color=%23CBCBCB&border-color=%23cbcbcb&bg1=%23F6F6F6&bg2=%23ffffff&bid=hide&ask=hide&last=hide&high=hide&low=hide&change=hide&change_in_percents=hide&last_update=show"></iframe><br /><div style="width:213"><span style="float:left"><span style="font-size: 11px;color: #333333;text-decoration: none;">The <a href="http://www.forexpros.com/quotes" target="_blank" style="font-size: 11px;color: #06529D; font-weight: bold;" class="underline_link">Forex Quotes</a> are Powered by Forexpros - The Leading Financial Portal.</span></span></div>';
print '<br/>';
print "$a";
print end_html();'
getting error:
Can't modify constant item in scalar assignment at livedata.pl line 4, near ""http://fxrates.forexpros.com/index.php?pairs_ids=1525=last_update")" syntax error at livedata.pl line 6, near "http:" Execution of livedata.pl aborted due to compilation errors.
© Stack Overflow or respective owner