Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 studying the Monastery: (7)
As of 2020-11-26 16:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?