>>>>> ""D" == "Wagner, David <--- Sr Programmer Analyst --- CFS" 
>>>>> <david.wag...@fedex.com>> writes:

  "D>  ! ($word =~ m/^[aeiouy]+&/gi or $word =~ m/^[bcdfghjklmnpqrstvwxz]+&/gi)

  "D> This forces a start and end of on $word and I like the positive of
  if ONLY vowels plus Y or ONLY consonants. SO it is one way of doing
  it.

i think you mean $ and not & in those regexes. & has no meaning in a
regex.

also the /g is useless there since you aren't matching the same text in
scalar context in a loop (each match is against a new word).

uri

-- 
Uri Guttman  --  uri AT perlhunter DOT com  ---  http://www.perlhunter.com --
------------  Perl Developer Recruiting and Placement Services  -------------
-----  Perl Code Review, Architecture, Development, Training, Support -------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to