Re: Getting data from external URL

2000-08-26 Thread Stas Bekman
On Sat, 26 Aug 2000, Rodney Broom wrote: > OK, lots of banter... > > Hey V, if you are on a *NIX system, then this is a fast way: > > open U, "lynx -source www.some.url.dom |"; > $data = join '', ; > > There, you're finished. Admittedly, this isn't terribly efficiant, but it works > just fine

Re: Getting data from external URL

2000-08-26 Thread Rodney Broom
OK, lots of banter... Hey V, if you are on a *NIX system, then this is a fast way: open U, "lynx -source www.some.url.dom |"; $data = join '', ; There, you're finished. Admittedly, this isn't terribly efficiant, but it works just fine and has short devel time. Rodney Broom

RE: Getting data from external URL

2000-08-26 Thread Andrew Nicholson
Hello Vijay, You can make simple HTTP GET or POST requests using the LWP and HTTP modules. I recommend that you read the ActivePerl help files. I have attached the one you really need but it probably won't make sense unless you read up on LWP. # A small sample follows: use LWP::UserAgent; # us

Re: %fdat %udat and CGI.pm

2000-08-26 Thread Gerald Richter
Hi, > > Found a very interesting thing [for me: because i`m quite new to embperl]. > When optDisableFormData is set i`m not able to use %fdat for POST requests and > can use CGI.pm if it is set i`m not able to use CGI.pm. I think that for GET > requests i can use both methods...

Re: Getting data from external URL

2000-08-26 Thread Gerald Richter
Hello, > > I want to get data from an external url in my perl program (either thru > Embperl Execute or directly from perl). What I need is like this. > > There is a URL which gives some information in text format. I want to get > that into a variable or file using perl and using my own html temp

Re: Foreach problem

2000-08-26 Thread Gerald Richter
> > [Sat Aug 26 11:09:47 2000] [error] [831]ERR: 38: Line 33: Too few arguments > [Sat Aug 26 11:09:47 2000] [error] [831]ERR: 46: Line 33: Unclosed command [$ foreach $] at end of file > > Line 33 is the start of the foreach loop. > > It only happens sometimes, and I really don't know why. > >

Foreach problem

2000-08-26 Thread Kaare Rasmussen
I have another problem with Embperl This construct: [$ foreach $prod @product $] [$ if ($prod->{name}) $] [+ $prod->{name}.'.value*'.$prod->{price}.' +' +] [$ endif $] [$ endforeach $] gives me this error: [Sat Aug 26 11:09:47 2000] [error] [831]ERR: 38: Line 33: Too few arguments [Sat A