Perl: the Markov chain saw | |
PerlMonks |
Re^2: To Pattern Match or not to Pattern Matchby Anonymous Monk |
on Mar 04, 2005 at 00:14 UTC ( [id://436420]=note: print w/replies, xml ) | Need Help?? |
I think the problem here is that it loops through the 1st 10 names in @names and since none of those 10 matches it prints out "Name does not exist" 10 times. I need it to loop through all 20 strings in @names and if it doesnt find a match then print "Name does not exist" only once, buts only my guess.
In Section
Seekers of Perl Wisdom
|
|