Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: regex to find vowels in anyorder

by hbm (Hermit)
on Dec 19, 2011 at 21:02 UTC ( [id://944304]=note: print w/replies, xml ) Need Help??


in reply to Re: regex to find vowels in anyorder
in thread regex to find vowels in anyorder

As is, "gamma contains 2 different vowels". You'd better move "my %c" within the while loop...

And you can make it even less complicated.

#$c{$_}++ for m/([aeiou])/g; $c{$_}++ for /[aeiou]/g;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://944304]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-26 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found