Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Find the shortest word in the English Language with: a b c d e f

by haukex (Archbishop)
on Jul 04, 2018 at 11:20 UTC ( [id://1217876]=note: print w/replies, xml ) Need Help??


in reply to Find the shortest word in the English Language with: a b c d e f

TIMTOWTDI :-)

next unless/(?=.*a)(?=.*b)(?=.*c)(?=.*d)(?=.*e)(?=.*f)/i;push@_,$_ # ==> lc=~s/(.)(?=.*\1)//gr=~y/abcdef//<6||push@_,$_ # or, on Perls <5.14: ($b=lc)=~s/(.)(?=.*\1)//g;$b=~y/abcdef//<6||push@_,$_

Update: s/tr/y/, thanks Eily :-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-24 05:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found