Perl 5.10, 20 Year Anniversary
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."
The link should be perlDELTA, not perldata.
Switch statements are syntactic sugar. They're really not needed. Nested if/then/else do the same thing.
Yeah, and who needs if statements anyway, or a high-level language come to that? Just syntactic sugar, I say we go back to sector-editing ones and zeros directly to the disk. Readability? Pah.
Cheers,
Ian
"Perl" and "readability" don't fit in the same sentence to begin with. :)
"Perl" and "readability" don't fit in the same sentence to begin with. :)
Lean on your keyboard for long enough, and you will eventually have produced a valid Perl script. Of course you won't know what it actually does, but then how does that differ from 90% of Perl scripts anyway?
Cheers,
Ian
that has the ORELSE operator?
No folly is more costly than the folly of intolerant idealism. - Winston Churchill
"say() is a new built-in, only available when use feature 'say' is in effect, that is similar to print(), but that implicitly appends a newline to the printed string".
:(
*sigh* Nice to see they're still adding to the elegance of the language
I wonder if threading actually works in production yet?
Get real -- this is perl we are talking about.
A programming language used for poetry.
A programming language where "bless" is a basic operation.
A programming language which borrows the "understood" syntax from English.
A programming language where all published examples contain variables "Foo" and "Bar".
Of course they are going publish a new release on the twentieth anniversary. I dont think it occurred to anyone in the perl community not to.
Old COBOL programmers never die. They just code in C.
At least Perl knows that adding numbers and concatenating string are different operations.
2 + 3 == 5 (Perl isn't that weird)
2 + "3" == 5 (not a TypeError as in Python)
"2" + 3 == 5 (not "23" as in JavaScript)
"2" + "3" == 5 (not "23" as in both JavaScript and Python)
Je fume. Tu fumes. Nous fûmes!
>>Yeah, and who needs if statements anyway...
/tongue-in-cheek
>You wrote something accidentally insightful. Look at the following expression:...
Away - away foul Lisp advocate, and darken not my doors again!
Cheers,
Ian
I always though of Parrot as of a project that was born dead.
You *know* what kind of responses you are asking for when you write something like that don't you....
factor 966971: 966971
You'll have that sometimes...
Readability? You do realize this is Perl we're talking about?
If someone is passing you on the right, you are an asshole for driving in the wrong lane.
While statemets? pah. setjmp and longjmp ftw.
The new recursive patterns should increase perl's readability.
No folly is more costly than the folly of intolerant idealism. - Winston Churchill
With 'given-when', you have broken into lands no other languages dared. I now await the addition of 'conclude-basedon' and 'eithernot-ifonly' to complete the glory that is perl.
http://dilemma.gulecha.org - My philospohical short film.
I program in high-level languages precisely because I don't want to have to think about whether something is a string or a number. I have bought and paid for, with my own money, earned by effort of hand or brain, enough RAM, disk space and CPU cycles to afford myself that little luxury. I grew up with 1980s 8-bit machines, learned to use instructions as numeric constants, when to bit-pack and when not to (the extra unpacking code can negate the saving), and all the other ways you can shave a byte off here or there (even putting code in the framebuffer and hiding it by palette-switching mid-frame). Now the computer is smart enough to take care of all that trivial crap, leaving me to sweat the big stuff.
Je fume. Tu fumes. Nous fûmes!