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.
  • I have just discussed this subject on the Copenhagen Perl Mongers mailinglist - and I would very much like to see you Perl and C++ versions if there are publically available?
    • by TeeJay (2309) on 2004.06.10 7:00 (#31396) Homepage Journal
      ok

      have a look at my C++ [droogs.org] and the perl

      the perl code is more mature, but also organic while the C++ is a rewrite, so it is better done.

      I think I could get the perl to be better, based on the C++ class, then the LoC would be marginally less than the C++ but the difference would be a lot smaller than I expected. I could probably optimise the C++ for LoC as well so its looking pretty even.

      The key part is the constructor and the up,down, etc methods - this is the core of the class and you can see how the C++ is probably clearer and more concise even if slightly more LoC.

      Hope that helps

      --

      @JAPH = qw(Hacker Perl Another Just);
      print reverse @JAPH;