Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Grep Pattern

by Eily (Monsignor)
on Dec 12, 2018 at 14:39 UTC ( #1227148=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<11> $i = 0; say for grep { $i++ % 4 < 2 } 0..12
    0
    1
    ...
    8
    9
    12
    
  2. or download this
      DB<12> $i = 3; say for grep { $i++ % 4 < 2 } 0..12
    1
    2
    ...
    6
    9
    10
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2019-11-12 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (64 votes). Check out past polls.

    Notices?