Re: [MacPerl] lwp - repeating 404

2002-09-23 Thread allan juul
thanks, painfully obvoius ;) Quoting Chris Nandor <[EMAIL PROTECTED]>: > You do not ever reset $msg each time in the loop. Try putting 'my $msg = > "";' inside the loop, not outside. > > -- > Chris Nandor [EMAIL PROTECTED]http://pudge.net/ > Open Source Development Ne

Re: [MacPerl] lwp - repeating 404

2002-09-23 Thread Chris Nandor
At 15:20 +0200 2002.09.23, allan juul wrote: >#!/usr/bin/perl -w > >use strict; >use LWP::UserAgent; > >my $ua = LWP::UserAgent->new(env_proxy => 1, > keep_alive => 1, > timeout => 30, > ); > >my $msg = ""; Crea

[MacPerl] lwp - repeating 404

2002-09-23 Thread allan juul
hi i have a problem with lwp. i have a script below that basically just checks 3 urls for errors. two of these urls are identical. as soon as i get one error from one url all the following ones will also get an error. so if i change the order in the @urls array with all the positively good on