in reply to Re: Comparing the first element of an array with an array
in thread Comparing the first element of an array with an array

Grep returns the numer of items the code was true for when called in scalar context, so you can pretty much just use holli's code in an if statment
if ((grep {$_ eq $links[0] } @visited_urls) > 0) { print "URL found\n"; } else { print "URL not found\n"; }