Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2016-04-29 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (441 votes). Check out past polls.