Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Huffman coding in pure Perl

by geekphilosopher (Friar)
on Mar 04, 2007 at 17:26 UTC ( [id://603118]=note: print w/replies, xml ) Need Help??


in reply to Huffman coding in pure Perl

The line
use 5.000_008;
says you require Perl 5.0.8. Perhaps you meant
use 5.008_000;
See perldoc -f use for more info.

Replies are listed 'Best First'.
Re^2: Huffman coding in pure Perl
by merlyn (Sage) on Mar 04, 2007 at 18:55 UTC
Re^2: Huffman coding in pure Perl
by vrk (Chaplain) on Mar 04, 2007 at 17:47 UTC

    Yes, thank you. That was a silly typo. Fixed now.

    --
    print "Just Another Perl Adept\n";

      Why is that line even there at all? The meaning of that line is "This is guaranteed to not work in versions prior to 5.008". Why doesn't it work in those older versions? It certainly compiles fine (once that line is removed).

      So it appears that the purpose of that line may simply be to guarantee that the module won't work for versions prior to 5.008 ( do you dislike old Perl versions? :). You should at least comment the line so people know why you know your module is incompatible with pre-5.008 Perls. Or don't include such lines if you don't actually know that your module "requires 5.008".

      - tye        

        Hmm. To be frank, I didn't know the semantics of the line is "not guaranteed to work in previous versions". I thought it was more like "only tested with versions this and above", and since I only have Perl 5.8 (5.8.8 to be exact), it was a natural thing to do.

        I have nothing against older Perl versions, but I feel responsible if I don't clearly document it that I have only tested the module with Perl 5.8, and someone runs the module with an old version where it doesn't work.

        --
        print "Just Another Perl Adept\n";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://603118]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-16 16:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found