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

Re^2: Count in intervals

by QM (Parson)
on Oct 01, 2014 at 09:52 UTC ( [id://1102523]=note: print w/replies, xml ) Need Help??


in reply to Re: Count in intervals
in thread Count in intervals

Seems a good task for Iterator.

Why? That just transforms the OP from "How do I do this?" to "How do I do this with an iterator?", and doesn't offer a solution.

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^3: Count in intervals -- PM policy
by ww (Archbishop) on Oct 01, 2014 at 11:54 UTC

    Discipulus' answer seems pretty fair to me.

    OP posted no code; gave no evidence that the SOPW showed any effort on the author's part; nor even followed the instructions in either PMD (to which the question was originally posted) or SOPW.

    Providing a complete answer to such a question may display the responder's skills... but it does not comport with the Monastery's mission: that we'll help people learn, but not do a job for them.


    Questions containing the words "doesn't work" (or their moral equivalent) will usually get a downvote from me unless accompanied by:
    1. code
    2. verbatim error and/or warning messages
    3. a coherent explanation of what "doesn't work actually means.
      I agree with your sentiments about the nature of the OP.

      However, suggesting Iterator to someone who's struggling with while and grep is, to my mind, like saying "Problems? Try a fork instead." Now there is one more problem.

      Also note that rkk has 10 writeups on the monastery. Judging by the OP and 10 writeups, I'd venture that Iterator might as well be Klingon, for all the good it does for the OP.

      Yes, providing a one-shot complete answer to posts such as rkk's probably isn't the best way to bring people like rkk up to speed here. Neither is providing "help" that isn't.

      -QM
      --
      Quantum Mechanics: The dreams stuff is made of

Re^3: Count in intervals
by no_slogan (Deacon) on Oct 01, 2014 at 16:24 UTC
      Seriously, though, read Higher-Order Perl.

      I did. I have a signed copy. I found it very interesting.

      I also recall MJD saying he tried to write the smartest book he could. When he should have gone the other direction. And his next book was an effort to correct that.

      -QM
      --
      Quantum Mechanics: The dreams stuff is made of

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-19 05:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found