Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Anagrams & Letter Banks

by BillKSmith (Monsignor)
on Oct 28, 2017 at 11:20 UTC ( [id://1202223]=note: print w/replies, xml ) Need Help??


in reply to Anagrams & Letter Banks

use of a utility module List::MoreUtils allows you to write code, for your first question, that looks much like your specification.
use strict; use warnings; use List::MoreUtils qw(any); my @strings = qw(abcd abbd efgh); print @strings if any {/(\w)\1/} @strings;
Bill

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-03-28 14:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found