send multiple requests instead of one at a time

[email protected]
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
Apparently my little program,

    my $r = HTTP::Request->new(
        HEAD => undef,
        [ 'If-Modified-Since' => time2str( time - 60 * 60 * shift @ARGV ) ]
    );
    my $ua = LWP::UserAgent->new;
    $ua->env_proxy;
    while (<>) {
        $r->uri($_);
        print if ( $ua->request($r)->code == RC_NOT_MODIFIED );
    }

would be more efficient if it just sent one big request. I read the
undated but Last-Modified: Apr 2000 paper,
http://linpro.no/lwp/lwpng-paper/ , but of course still don't know
what to do next. I even read LWP::ConnCache but cannot picture in my
mind any examples.

P.S., http://linpro.no/lwp/ should mention
http://news.gmane.org/group/gmane.comp.lib.libwww/
instead of those outdated other places.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.