On Apr 15, 2012, at 8:51 PM, Rassoul Aleshi wrote:
>
>
>
>
> Hello list managerl
>
> I am trying to get this simple peogram to call server function and return
> data and it does not work, is here anyone can help?
>
> #!/usr/bin/perl2.
> use strict;3.
> use warnings;
> $i= "value";
>
> for $i (1..2)
> {
> #loop a few times
>
> push
> {"http://127.0.0.1:16239/req?GetHistory(AA,01/20/2010,1/26/2012,1D,YES)";}
> # Call server function
> {print
> "http://127.0.0.1:16239/req?GetHistory(AA,01/20/2010,1/26/2012,1D,YES)";}
> # return data
>
> }
The Perl language, like most general-purpose languages, does not automatically
recognize a URL and fetch its content from the internet. You will have to
explicitly tell Perl that that is what you want it to do.
Check our the LWP::Simple module, for example.
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/