Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Let's get lazy

by guillaume (Pilgrim)
on Aug 28, 2001 at 19:25 UTC ( #108469=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @strings = (grep /[acgmt]{2}/, ('aa' .. 'tt'), 
                   grep /[acgmt]{3}/, ('aaa' .. 'ttt'), 
                   grep /[acgmt]{4}/, ('aaaa' .. 'tttt'));
    
  2. or download this
    my @strings = (grep /[acgmt]{2}/, lazy ('aa' .. 'tt'), 
                   grep /[acgmt]{3}/, lazy ('aaa' .. 'ttt'), 
                   grep /[acgmt]{4}/, lazy ('aaaa' .. 'tttt'));
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://108469]
Approved by root
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2017-01-19 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.