open( INFO, $file ); # This will only read the file up to the first newline. If the lines # in the file are delimited with newlines, it will read the first # line in the file and stop. my $line = ; close( INFO ); chomp ( $line ); # Add code to process the first URL.