in reply to Re: How to distinct the call position of a sub?
in thread How to distinct the call position of a sub?

Would you really use an iterator that throws an exception when it runs out of things to iterate?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re^2: How to distinct the call position of a sub?

Replies are listed 'Best First'.
Re^3: How to distinct the call position of a sub?
by jeffa (Bishop) on Nov 24, 2008 at 19:50 UTC

    I wouldn't use an iterator unless someone forced me to. My point was that there is plenty of working code on the CPAN that we can look "under the hood" at. Do they use caller() to achieve their goals? Did they run into the same problem or did they cirsumvent the problem altogether?

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    
      well I have no problem to learn from others, but as I already said
      1. iterators are just one application for this "call position" problem
      2. I'm looking for a all-in-one iterator, combining the generator-syntax within.

      so please, could you point me to a modul on cpan that doesn't use separate generators and iterators? I'd be glad to "look under the hood" and explain their technique in detail.

      Cheers Rolf