Slashdot Mirror


Perl 5.22 Released

kthreadd writes: Version 5.22 of the Perl programming language has just been released. A major new feature in this release is the double diamond operator; like the regular diamond operator it allows you to quickly read through files specified on the command line but does this in a much safer way by not evaluating special characters in the file names. Other new features include hexadecimal floating point numbers, improved variable aliasing and a nicer syntax for repetition in list assignment. Also, historical Perl modules CGI.pm and Module::Build are removed from the core distribution.

5 of 92 comments (clear)

  1. Re:News that matters! by plopez · · Score: 4, Funny

    Oblig:

    BEFOREHAND: close door, each window & exit; wait until time;
            open spell book; study; read (spell, $scan, select); tell us;
    write it, print the hex while each watches,
            reverse length, write again;
                          kill spiders, pop them, chop, split, kill them.
                                unlink arms, shift, wait and listen (listening, wait).
    sort the flock (then, warn "the goats", kill "the sheep");
            kill them, dump qualms, shift moralities,
                          values aside, each one;
                                  die sheep; die (to, reverse the => system
                                                you accept (reject, respect));
    next step,
            kill next sacrifice, each sacrifice,
                          wait, redo ritual until "all the spirits are pleased";
            do it ("as they say").
    do it(*everyone***must***participate***in***forbidden**s*e*x*).
    return last victim; package body;
            exit crypt (time, times & "half a time") & close it.
                          select (quickly) and warn next victim;
    AFTERWARDS: tell nobody.
            wait, wait until time;
                          wait until next year, next decade;
                                  sleep, sleep, die yourself,
                                                die @last

    --
    putting the 'B' in LGBTQ+
  2. Re:Perl still around? by prof_robinson · · Score: 5, Informative

    Perl isn't going anywhere. In fact, installs and contributions to CPAN are up almost 1200% in the last 10 years. What's happened to Perl, is it's become ubiquitous...it's literally everywhere. It's not our fault you haven't noticed.

  3. Re:Perl still around? by rduke15 · · Score: 5, Informative

    Replaced where? Apparently not on my Debian servers:

    # find /etc /bin /sbin /usr/bin /usr/sbin -type f | xargs file | grep "Perl script" | wc -l
    119
    # find /etc /bin /sbin /usr/bin /usr/sbin -type f | xargs file | grep "Python script" | wc -l
    29

  4. Re:hexadecimal floating point numbers? by gnasher719 · · Score: 4, Informative

    What's the use case for hexadecimal floating point numbers? Seems like a "Why not" feature.

    Useful when you implement high quality transcendental functions and need floating-point constants that are guaranteed to be converted exactly as intended.

  5. Re:hexadecimal floating point numbers? by serviscope_minor · · Score: 4, Insightful

    The use of hex floats is to be able to write out floats efficiently and with guaranteed full accuracy to a text file. You can use decimal but you need a LOT of digits in order to do so, making the files rather bloaty. The reason Perl now supports them I suspect is because they're now supported in a bunch of other languages such as C++, so if you want to be able to mutually exchange data, you need hex floats in perl too.

    Pesonally, I like them. A lot of data one generates in numerics isn't exactly human readable, but is generated as text for easy parsing with the original language and other tools. For example if your algorithm generates a log of checkpoints you can restart interrupted computations (great for splitting work into smaller chunks for a cluster), for example. To do that properly, you need to be able to save the state without loss.

    That's just one of many examples.

    It's curious that people (not you) have been guffawing over how stupid Perl is for doing this. It's funny that a supposedly hackish community has a significant cadre who brags about their anti-intellectualism as much as any self-respecting highschooler.

    --
    SJW n. One who posts facts.