Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Grep Pattern

by Eily (Monsignor)
on Dec 12, 2018 at 14:39 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1227148]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-24 18:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found