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
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
LoC (Score:2)
Re:LoC (Score:2)
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
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;
Re:LoC (Score:2)
perl version can be found at http://search.cpan.org/src/TEEJAY/Math-Curve-Hilbert-0.04/ [cpan.org]
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;