Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Executing FIRST before anything in the loop makes it pretty uninteresting. It would be more useful if it were run conditionally but on its place.

    About implementing it, how about maintaining a loop iteration counter in some internal variable as $?I.

    The same applies for LAST, but how do you know you are running the last iteration until after the loop check has failed?

    • Hi Salva, I assume your post was to me, it made me look at SO4 abouth phasers WOW that's a lot. I done it again, talk/write first without thinking. My construct were more of documentary purpose and to tie code together. And since I did it mostly for myself I didn't have to take care of every edge case e.g. when an empty loop mattered I did the check in the 'phasers'. As for setting LAST just be one step ahead, it's not a big deal for finit resources. I had good use for my construct, but that was not even a pee in the pond compared with Perl6 phasers. Next time I have opinions about Perl6 I read the specs first. P.S. I have followed Perl6 development for the last 3-4 years and I'm VERY impressed with what you are creating. I hope to get some time to late this year to attempt to do something serious in Perl6.
      • Next time I have opinions about Perl6 I read the specs first.

        Ka-ching! You've just earned 100 experience points, and may proceed to the next level of Perl 6. :)