# The while loop reads each line of the file, one at a time. You can # then process each line individually. while( ) { chomp( $_ ); # This removes the newline from each line. # Add code to process each URL. }