Hi All, If I have a file, /usr/bin/my_urls.txt which contain... urls... :-) one on each line. Can I read these into a foreach statement instead of listing them individually? I think I need to use a filehandle to open the file and then send that to the @ ... right?
------ maybe like this? ---------- @urls = /usr/bin/my_urls; foreach $urls (@urls) { print ------- end -------------------------- --- here is what I'm doing now ------- use strict; use LWP::Simple; foreach my $url ( 'http://www.bvolk.com', 'http://www.tvolk.com', 'http://www.yahoo.com', ) { print "\n$url\n"; my ($type) = head($url); unless (defined $type) { print "Couldn't get $url\n"; next; } } --------- end ---------------------------- need help...! Thanks! Brian -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>