idova has asked for the wisdom of the Perl Monks concerning the following question:
the code above executes cleanly the first time trough (it runs in a deamon) but the second time (about 24 hours later) the last line fails (the progress_log subs just prints the message to a log so i was able to identify the failing line) now can anyone give me any suggestions as to why it is happening and how to fix itmy $h = new HTTP::Headers( Accept=>'*/*', user_agent=>$ENV{'HTTP_USER_AGENT'}, ); &progress_log("setup the headers"); my $req = new HTTP::Request( $req_type, $posttourl, $h ); &progress_log("setup the headers"); my $user_page = $ua->request($req); &progress_log("got the results"); $user_page_flat = $user_page->as_string;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: why does my as_string fail the second time its used
by Corion (Patriarch) on Nov 27, 2003 at 10:37 UTC |