Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×

Perl 5.10, 20 Year Anniversary 304

alfcateat writes "Perl 1 was released to the public by Larry Wall 20 years ago yesterday. To celebrate, Perl5Porters have released Perl5.10, the latest stable version of Perl 5. Happy Birthday Perl! Perl 5.10 isn't just a bug fix version: it's full of new features that I'm eager to use: named captures in regular expressions, state variables for subroutines, the defined-or operator, a switch statement (called given-when, though), a faster regex engine, and more. You can read more about the changes in perldelta."
This discussion has been archived. No new comments can be posted.

Perl 5.10, 20 Year Anniversary

Comments Filter:
  • Hmmmmmm (Score:5, Insightful)

    by Billosaur ( 927319 ) * <<wgrother> <at> <optonline.net>> on Wednesday December 19, 2007 @09:57AM (#21750804) Journal

    I was right... we hit double-digits with Perl 5 before Perl 6 became available... and don't go on about Parrot -- it's not Perl 6. I'll be interested to download 5.10 and see what it can do. The speedier regex engine is going to be a great boon.

  • by morgan_greywolf ( 835522 ) on Wednesday December 19, 2007 @09:59AM (#21750818) Homepage Journal
    Switch statements are syntactic sugar. They're really not needed. Nested if/then/else do the same thing. There are also other constructs that you can use to get around the whole nested if/then/else thing too in many cases.

  • by Westley ( 99238 ) on Wednesday December 19, 2007 @10:00AM (#21750824) Homepage

    I can't see why (in purely practical terms) it's worth coordinating a release with an anniversary.

    Surely if the code is "ready" (thoroughly tested etc) before the anniversary, it could very easily be useful as a release to developers before the anniversary.

    If it isn't ready, it shouldn't be released early just because there's an anniversary.

  • by Anonymous Coward on Wednesday December 19, 2007 @10:05AM (#21750860)
    Perhaps the Anniversary was the date set to have it all ready by. People set deadlines and they probably met the deadline hence it being released. Common sense plz.
  • Re:Hmmmmmm (Score:5, Insightful)

    by fbjon ( 692006 ) on Wednesday December 19, 2007 @10:21AM (#21750998) Homepage Journal

    The speedier regex engine is going to be a great boon.
    Not to mention the named captures. Finally, no more empty capture vars because some parentheses were removed in the middle of the expression!
  • by BodhiCat ( 925309 ) on Wednesday December 19, 2007 @11:21AM (#21751602)
    Much thanks to Mr. Wall for creating a fast and dirty lannguage. The Oscar Madison of programming languages, much easier to learn and use than Java, the script equivilent of Felix Unger. Perl has been great for small cgi web things, not a lot of fuss and bother. Wouldn't use it for anything over a few hundred lines, tho, too easy for variable to get confused, even when using strict. Now if I can just get the DBI to MySQL on OS 10.5 to work my life would be perfect.
  • by Kostya ( 1146 ) on Wednesday December 19, 2007 @11:37AM (#21751778) Homepage Journal
    What? No mod +funny yet? Come on people!

    Yeah, I saw recursive patterns and thought, "Crap, now I'm going to have to relearn how to look at regexes so that I see those too." Still, I'm excited about the power (while being daunted by the readability).
  • by Phroggy ( 441 ) <slashdot3@ p h roggy.com> on Wednesday December 19, 2007 @11:45AM (#21751858) Homepage
    Hey now - those of us who write Perl code know exactly what our own code does, or at least we did when we wrote it. It's reading somebody else's code (or our own, years later) that's the tricky part. Perl is a lot of fun to write!
  • by Chandon Seldon ( 43083 ) on Wednesday December 19, 2007 @11:48AM (#21751902) Homepage

    Lambda-calculus is in no way high level, it just doesn't happen to correspond to a machine model.

  • by Goaway ( 82658 ) on Wednesday December 19, 2007 @11:51AM (#21751940) Homepage
    Uh, with Perl being one of the few scripting languages out there that even have something like use strict, I'd say it's one of the least likely ones to confuse variables in.
  • by SamP2 ( 1097897 ) on Wednesday December 19, 2007 @12:16PM (#21752276)

    2 + "3" == 5 (not a TypeError as in Python)
    "2" + 3 == 5 (not "23" as in JavaScript)
    And this is intuitive, useful, or best practice, how exactly?

    Implicit parsing a num to a string is straightforward and will pretty much always work, even if you may get wierd results like "1.66666666666666666667". But the other way is just too careless to let be implicitly done. You may unexpected errors when for some reason the string you use cannot be parsed, and you may get either an unexpected datatype or a truncated result when a parsed string would not match the other num you add to it (such as int a = x+5 where x is a string "3.5").

    Casting from string to number should always be done explicitly, with precise definition of the data type you cast to, and ideally with an error catching block in case something goes wrong. Letting it be done implicitly is a recipe for headache.
  • Re:what the FUD (Score:3, Insightful)

    by mr_mischief ( 456295 ) on Wednesday December 19, 2007 @02:03PM (#21753834) Journal
    The Python community doesn't have to adopt it. There's a considerable overlap of community members among Perl, Python, Ruby, Scheme, Haskell, and other languages. So long as Pirate keeps close enough to the official Python stuff, people who want to use Python and Perl together will be able to put their Python code into a project using Pirate instead of Jython or whatever.

Say "twenty-three-skiddoo" to logout.

Working...