Re: LWP get with no cache (code)

2004-01-23 Thread Randal L. Schwartz
> "J" == J Alejandro Ceballos Z <[EMAIL PROTECTED]> writes: J> # J> # Read Input J> &ReadInput(*cInput); >> Eeek! "use CGI". "use CGI". "use CGI". Not this stuff. >> I didn't read any further. My mind rejects CGI scripts that are >> written this poorly. J> If you see CGI.pm, ReadI

Re: LWP get with no cache (code)

2004-01-23 Thread J. Alejandro Ceballos Z.
>J> #!/usr/bin/perl >J> # >J> # Load modules >J> use CGI::Carp qw(fatalsToBrowser); >J> use LWP::Simple; >J> use integer; > Huh? Why? Ok, I agree with your cuestion about CGI::Carp(fatals.. and integer. My mistake. J> # >J> # Read Input >J> &ReadInput(*cInput); >Eeek! "use CGI". "use CGI".

Re: LWP get with no cache (code)

2004-01-22 Thread Randal L. Schwartz
> "J" == J Alejandro Ceballos Z <[EMAIL PROTECTED]> writes: J> #!/usr/bin/perl J> # J> # Load modules J> use CGI::Carp qw(fatalsToBrowser); J> use LWP::Simple; J> use integer; Huh? Why? J> # J> # Read Input J> &ReadInput(*cInput); Eeek! "use CGI". "use CGI". "use CGI". Not this stuff.

Re: LWP get with no cache (code)

2004-01-22 Thread J. Alejandro Ceballos Z.
#!/usr/bin/perl # # Load modules use CGI::Carp qw(fatalsToBrowser); use LWP::Simple; use integer; # # Read Input &ReadInput(*cInput); # set results $cResult = ''; $cBanxicoPage = get("http://www.banxico.com.mx/anuncios_indicadores/indicadores.jsp";); # change the page into plain text ($cPlainP

RE: LWP get with no cache

2004-01-22 Thread Bob Showalter
J. Alejandro Ceballos Z. wrote: > I created a cron job that gets a page using LWP::Simple, but > everytime it runs via cron, it sends me the results generated when I > called directly; like if the page was called from memory or from a > cache, not from the actual one. > > Is there any