EvanCarroll has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -l use LWP; use Parallel::ForkManager; use feature ':5.10'; my $pm = Parallel::ForkManager->new(10); my $lwp = LWP::UserAgent->new; foreach my $test ( 0 .. 500 ) { state $count = 0; $count++; $pm->start and next; my $resp = $lwp->get( "http://google.com/search?q=$test", ':conten +t_file' => $test ); $pm->finish; } $pm->wait_all_children;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Strawberry perl memory leak
by BrowserUk (Patriarch) on May 15, 2008 at 05:21 UTC | |
by EvanCarroll (Chaplain) on May 15, 2008 at 17:24 UTC | |
by BrowserUk (Patriarch) on May 15, 2008 at 18:20 UTC | |
|
Re: Strawberry perl memory leak
by runrig (Abbot) on May 14, 2008 at 22:47 UTC | |
|
Re: Strawberry perl memory leak
by CountZero (Bishop) on May 14, 2008 at 22:59 UTC | |
|
Re: Strawberry perl memory leak
by ysth (Canon) on May 15, 2008 at 03:21 UTC | |
by EvanCarroll (Chaplain) on May 15, 2008 at 04:36 UTC | |
by ysth (Canon) on May 15, 2008 at 07:04 UTC |