Re: Bug in Perl or LWP? Or am I missing something?
Gisle Aas (aas@sn.no)
27 Aug 1998 11:27:01 +0200
"Jess O'Leary" <jess@telecom-pros.com> writes:
> The simple code below, using LWP::Simple, balloons to about 15megs after
> 400 or so passes through the loop. Any ideas why? I'm using the latest
> versions of both Perl and LWP with BSD ...
>
> foreach (@urls) {
>
> $doc = get $_;
> if ($doc =~ /$query/i) { $i++; }
>
> }
>
>
> Thanks for any insight,
I don't really have any concrete ideas. Is the second line that
builds the regexp necessary to demonstrate the memory growth? Does it
help if you use /$query/io instead?
Regards,
Gisle