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."
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.
GetOuttaMySpace - The Anti-Social Network
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.
My blog
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.
The link should be perlDELTA, not perldata.
PerlData Link is actually this one, not the current link that points to the blog.
that has the ORELSE operator?
No folly is more costly than the folly of intolerant idealism. - Winston Churchill
I have to agree with Linus on this one.
"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?
So does Perl know that version 5.10 > 5.8?
Yeah...Huzzah...Let's all go down and riot at the punctuation factory.
You'll have that sometimes...
I must say, I never thought I'd live to see Perl make it to. long years! To think, years ago the original Street Fighter had just been released. The PC first got the VGA standard years ago -- the Web? Forget about it -- years ago, the Internet barely existed as such!
Congratulations Perl on making it to glorious years!
I wonder if you'll make it to more?
The new recursive patterns should increase perl's readability.
Original source.
Best Slashdot Co
Please provide five examples. Thanks in advance.
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.
Sigh. I wish people would stop saying that. It's "20th Anniversary." Anniversary MEANS YEARS.
But the cursing you get for free. And, bonus points, if you write it out in newspaper style it will execute. "Who the $_|&%.$# decided they were too cool to use lettes in the names of their variables in a 6,000 line program?"
(Yep, I really did hit an executing program on the first try. I think it evaluates to null for all input strings but $_|&%.$# if I'm going to try to parse Perl code without getting paid money for it.)
Help poke pirates in the eyepatch, arr.
Happy Anniversary, Larry!
:) gentlemen/gods.
Everyone, please don't forget to wish a Happy Anniversary to Randal L. Schwartz and Tom Christiansen. The three of these gentlemen have created the Perl we all know and love.
I have been blessed with the opportunity of going to week long Perl classes with all 3 of these (well, Tom & Randal. Larry just came for lunch
Merry Christmas one and all!
Armaments, 2-9-21 And Saint Attila raised the hand grenade up on high, saying, 'O Lord, bless this Thy hand grenade' N
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.
it would make Perl's the most impressive "Hello, World!" program ...
"I love my job, but I hate talking to people like you" (Freddie Mercury)
I am not touching Perl for any purpose. I'd rather do it in machine code than Perl... :-)
__
Arse
Ok, no more coffee for me today. :-)
It must have been something you assimilated. . . .
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.
Good grief, ever hear of Pirate (Python to Parrot compiler)? partcl (tcl to parrot)? Git yo azz ovah to parrotcode an edumacate yo-self! most of Perl 6 is runnable by Pugs, which can compile Perl 6 into Haskell, Javascript or Perl 5. Now I'm a Perl 6 detractor in that I mock the way Larry can't resist throwing in every shiny thing he sees in other languages, he should have got focused and finished years ago. But I still follow the news so I must care in same way relative cares about some distant member of the family destroying their life with a drug habit. Parrot has many cool ideas in and of itself, educational to study it
Jeez. Three times I burst out loud laughing reading the comments in this thread. The last time almost ended with coffee sprayed on the monitor. I know it's Perl and there is lots of material for comedy, but this has been the best read in a while.
Props y'all.
HBH
"Smart is sexy." -- D. Scully ("War of the Coprophages")
In a list of files, etc, Perl 5.10 will come between 5.1 and 5.2, which makes no sense at all.
The Parrot Weekly Team meeting ... is called the "Parrot Sketch" :)
Does the fact that you can now have nested patterns in regexes mean that we can actually, correctly strip out bad HTML with regexes now?
Please note, I did NOT use the word "should" or the phrase "should we" anywhere in that question. I just read the information about the changes and became frightened because there are now even more dark, scary corners of the regex world to try to wrap my mind around when I thought I was mostly safe there, except for a few dusty corners...
Well, did you see the syntax for one Perl 6 concurrency design? contend { maybe { this() } maybe { that() } }
Much better than silly words like semaphore and mutex. Good semantics, too, but that's hard to impress on people who don't think that there are any basic programming constructs you can't do with C :-).
In a list of files, etc, Perl 5.10 will come between 5.1 and 5.2, which makes no sense at all.
You do understand that this is Perl we're talking about, right?
It's simple: I demand prosecution for torture.
Perl version numbers are dotted triplets, much like IP addresses can be dotted quads. If there were such a thing as an official version number, it would be 5.001000.
how to invest, a novice's guide
Sort by date. HTH
Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
You like to touch Perl ... but only at the soft side ;)
:p
If I have to pick inbetween C, Perl, ASM or Pascal I'll be picking Perl for it's difficult and yet simple language
--- I am known for the ones who want to find me on the net. Is that a privacy risk or a privilege? One might wonder..
Bingo! That's what I love about Perl. No unexpected surprises, it Just Works the way it is supposed to (as thoroughly explained in the camel book).
A house divided against itself cannot stand.
``Double digit version #s aren't alphanumerically OK''
Right. And this being Perl, I don't understand why they didn't just continued with the next ASCII character, `:'.
``In a list of files, etc, Perl 5.10 will come between 5.1 and 5.2, which makes no sense at all.''
Ah. That's why...
Please correct me if I got my facts wrong.