| https://www.sec.gov/Archives/edgar/data/1897245/0001493152-23-024253.txt | /temp/edgar/0001493152-23-024253
{ my $SQL = "select url,filename from linktable"; my $query = $dbh->prepare($SQL) or die "Prepare".$dbh->errstr; $query-> execute() or die "".$dbh->errstr; while (my $ref = $query->fetchrow_hashref()) { my $ua = LWP::UserAgent->new(timeout => 10); $ua->default_header('Accept-Encoding' =>$mess = HTTP::Message->new()); $ua->default_header( USER_AGENT =>'COMPANY 'email@email.com' ); #print "$row[0] $row[1]\n"; #Coming back blank, so $ref isn't being as +signed my $res = $ua->mirror( $ref[0], $ref[1] ); } $query->finish; }
In reply to Using a Fetchrow with LWP by justin423
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |