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.

3 of 92 comments (clear)

  1. Re:Perl still around? by Anonymous Coward · · Score: 3, Insightful

    I work as a system administrator and although Python is quite popular nowadays I would say Perl is still one of the go-to choices for a lot of sysadmins. Sure Python is doing just fine, a lot of people use it; but I wouldn't say that it has replaced Perl in any way.

  2. Re:Impossible to care anymore by bill_mcgonigle · · Score: 3, Insightful

    Perl updates for the past ten years have been mostly unloved features and cruft. If 5.6 didn't get the job done then 5.22 won't either.

    This is just a "look at me, I'm uninformed about the languages landscape" post (good thing you went AC). Like Perl or not, most people who care about open source development know that the Perl nuts have been busy backporting the ideas that were supposed to show up in Perl 6 to Perl 5.

    Whether or not that goes anywhere is separate from being ignorant about what's going on.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  3. 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.