I am doing a exercise which requires me to find out all the words that have six or more characters and doesn’t contains any of the five vowels(a, e, I, o, u)
My code matched three words that satisfied the criteria
While(<>) #process the text file
if(/……/ and !/a/i and !/e/i and !/i/i and !/o/i and !/u/i)
print “$_ \n”;
I am wondering is this regular expression correct(will it match all the words satisfy the criteria)? Please help to confirm.
Good point... It would sure help if people would actually post their assignments when they want us to do their homework, instead of just paraphrasing it! Of course, it would also help if I truly knew Perl instead of just beining an itinerant toy monger that enjoys playing with it.