My question is how can I get a single line from a text "database" of URLs and send it along with the LOcation: command?
Here is what I have so far, but it doesn't work. I also need to "strip" the return and blank space at end of line.
<PRE>
open (LINKS, "$linkfile");
$lines=@file=<LINKS>; # inhale file & get # of lines
foreach $line (@lines) {
chop ($line) if ($line =~ /\n$/);
}
$gpmember=$lines[$member];
print "Location: [goingplatinum.com...]
close (LINKS);
</PRE>
Any snippet would be appreciated