Pick a forum, ask, and then follow up responses with questions. For instance if merlyn's response was too much, say, "I am trying to work my way through the link that you gave, but I am getting bogged down. Is there a more minimal intro that anyone can refer me to?" If you get no responses for a day or 2, then I might suggest asking in another forum and say that you didn't get any responses, so you are asking here. Alternately you can look at your question and try to figure out why you didn't get responses. (One common situation. If people see that you asked, were answered, and you say no more, people assume that the answer helped. If it didn't, without feedback nobody will know that!)

In short, treat your message as the start of an attempted conversation. Assume that between your initial asking and your understanding there may be a couple of rounds of discussion.

In this case I cannot check this code because I don't have the necessary module. But try the following example based on the documentation:

use strict; use LWP::Simple; use Parallel::ForkManager; # I assume you have reasons for a hash later..? my %urls = ( 'drudge' => 'http://www.drudgereport.com', 'rush' => 'http://www.rushlimbaugh.com/home/today.guest.html', 'yahoo' => 'http://www.yahoo.com', 'cds' => 'http://www.cdsllc.com/', ); my $pm = new Parallel::ForkManager(30); foreach my $file (sort keys %urls) { $pm->start and next; # do the fork # Start child code. my $ret = getstore($url{$file}, $file); print "File '$file' stored url '$url' with response code '$ret'\n"; # End child code. $pm->finish(); } $pm->wait_all_children;
Note the use of strict.pm and a consistent indentation style. Those are both excellent habits that will save you a lot of grief in the long run...

In reply to Re (tilly) 5: Parallel Downloads using Parallel::ForkManager or whatever works!!! by tilly
in thread Parallel Downloads using Parallel::ForkManager or whatever works!!! by jamesluc

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.