in reply to Using GET in a loop
use LWP::Simple; foreach $ID (@ID) { $content=" "; $url="http:://...docid=$ID"; # this is completely NEW value $content=get($url); # here you APPEND new value to the previous values open FILE, ">> C:/perl/output.txt"; print FILE $content; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using GET in a loop
by New Novice (Sexton) on Sep 17, 2004 at 09:30 UTC |