Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Let's get lazy

by guillaume (Pilgrim)
on Aug 28, 2001 at 19:25 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-03-28 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found