Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

(MeowChow) Re: Let's get lazy

by MeowChow (Vicar)
on Aug 28, 2001 at 22:10 UTC ( #108529=note: print w/replies, xml ) Need Help??


in reply to Let's get lazy

If memory use is your only concern, then here's a rehash (har har har) of one of my prior atrocities...
  
$_ = 'acgnt' x 4; push @strings, "$1$2" while /.*(.).*(.)(?(?{$_{"$1$2"}++})^)/; push @strings, "$1$2$3" while /.*(.).*(.).*(.)(?(?{$_{"$1$2$3"}++})^ +)/; push @strings, "$1$2$3$4" while /.*(.).*(.).*(.).*(.)(?(?{$_{"$1$2$3$4 +"}++})^)/; print join $/, @strings;
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://108529]
help
Chatterbox?
and the questions are moot...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-05-27 21:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?