Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Parallel::Iterator to get multiple pages

by poj (Monsignor)
on Aug 25, 2013 at 10:59 UTC ( #1050856=note: print w/replies, xml ) Need Help??


in reply to Parallel::Iterator to get multiple pages

try
my $worker = sub { my ($index,$ar) = @_; my ($name,$username,$pass,$url,$enable) = @$ar; .. }
poj

Replies are listed 'Best First'.
Re^2: Parallel::Iterator to get multiple pages
by McA (Priest) on Aug 25, 2013 at 12:11 UTC

    Hi poj,

    I'm pretty sure your hint is the solution. May I have an annotation: If this hurdle is taken Elwood1 would get problems with his return values.

    Wrap return code and return content into an anonymous array.

    return ( $index, [ $response->code(), $content ]);

    As far as I can see from the man page only one return value is allowed besides the index.

    McA

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1050856]
help
Chatterbox?
[LanX]: safe?
[shmem]: LanX: you can pass a shell command via @ARGV.
[shmem]: moritz: don't know, but you'd prolly whip it up in no time.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2018-05-21 13:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?