James, Thanks so much for your help, it's now working great!
One question, if you don't mind... my @urls = <LINKS>; # slurp the file Is this telling the diamond operator what to use for input? Just want to make sure I'm understanding correctly. Thanks again, Brian -----Original Message----- From: James Edward Gray II [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 10:38 AM To: Brian Volk Cc: 'Beginners (E-mail)' Subject: Re: foreach (from a file) On Jul 15, 2004, at 10:33 AM, Brian Volk wrote: > Am I getting close...? Sure are. > my $file = "/Program Files/OptiPerl/urls.txt"; > open (LINKS, $file) or die "Can't open $file: $!"; We're fine up to here. > chomp (@url = read(LINKS, $url, 100)); Let's break that into two steps: my @urls = <LINKS>; # slurp the file chomp @urls; # remove line endings > Thanks for your help! My pleasure. James -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>