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

Why are you rolling your own Iterator and why aren't you studying how other's have succeeded?

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)

Replies are listed 'Best First'.
Re^2: How to distinct the call position of a sub?
by BrowserUk (Patriarch) on Nov 24, 2008 at 19:46 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