Perl New Version 5.5.660 83
aarestad writes, "Just saw this on perl.com:
the new beta leading to perl 5.6. Read the
announcement."
It's mostly bugfixes. Pumpking Sarathy says we're on track for a 5.6 final release candidate by Feb.28.
"An idealist is one who, on noticing that a rose smells better than a cabbage, concludes that it will also make better soup." - H.L. Mencken
TCL is at 8.3 (Score:2)
learning perl... (Score:1)
-motardo
Slashdot (Score:2)
Does it work under Linux? (Score:1)
Does it cost a fortune like everythign else Rational makes?
Do you work for Rational?
Re:when are they going to.. (Score:1)
Re:Does it work under Linux? (Score:1)
Nope
Does it cost a fortune like everythign else Rational makes?
Yes
Do you work for Rational?
Nope. I actually dislike Rational, as was very sad that they aquired the original Purify developers. But I still think Its
bonus (Score:2)
Re:learning perl... (Score:1)
Man, this story has some sad comments... (Score:1)
:-\
Re:learning perl... (Score:2)
Note:
Is /. turning into Freshmeat? (Score:3)
I mean, why all these release updates?
Bjarne
Re:TCL is at 8.3 (Score:2)
This is irrelevant. Windows just hit version 2000... does that really big number make it more stable? Dunno - we'll see.
Re: (Score:2)
Re:when are they going to.. (Score:1)
I am enough of a masochist that I *enjoy* watching my program malfunction because I indented a line incorrectly
I don't see that this is any more painful than watching your program malfuction because you forgot an end-brace.
Re:Perl NSA (Score:2)
Re:Why new versions for Perl? (Score:2)
Each version, a few things might be dropped/added. But usually the archaic forms are kept for a few releases until everyone's migrated.
void recursion (void)
{
recursion();
}
while(1) printf ("infinite loop");
if (true) printf ("Stupid sig quote");
Re:Is /. turning into Freshmeat? (Score:2)
yeah, but it's a fricken beta. when 5.6 ships, then announce it.
Re:when are they going to.. (Score:2)
#!/usr/bin/perl -w
# a filter for enabling C++-looking "OO" style in Perl.
# not tested; have no idea if it works; probably clashes with about a dozen other forms. As usual, provided without any warranty. Heh.
# syntax:
#
# => $object->{property}
#
# => $object->method()
while (<>) {
s{:(\w+).(\w+)\s*([\([^\(\)]*\)]?)}{$3?'$'.$1.'->
print;
}
Happy now?
A more complete list of what has changed (Score:3)
Thanks! (Score:2)
Seriously, though, I think this is news, because Perl hasn't changed version numbers in a while. I guess this'll be cooler when it's a stable version, but...
Remember, Linux, Apache and Perl are always news here, because Slashdot runs on all three. And if Slashdot ever tackles that "slow under load" problem, that'll really be news!
---
pb Reply or e-mail; don't vaguely moderate [152.7.41.11].
Re:learning perl... (Score:2)
As with the other posters, I recommend "Learning Perl" (The Llama book), from O'Reilly and Associates. I also recommend, even if you're just learning, that you also have a copy of "Programming Perl", also from ORA (The Camel book). It is a nice reference to have, if you're curious about more information that the Llama book doesn't offer you.
HTH.
This is my
Re:learning perl... (Score:1)
People, read the detailed link (Score:5)
The biggest "missing features" continue to be solid multi-threading, compilation, and solid 64-bit support. If you want the first one, rethink whether the fork model works. If you want the second think about embedding an interpreter. If you need the third I suggest getting used to opening pipes to and from programs that can handle large files...
A "cool feature" that was discussed (I have ignored the Perl development list for the last half year so I don't know if it is in) was embedding Perl and a directory structure in a zip format. Imagine shipping an executable which had an encrypted zip appended which was Perl, with your scripts, and a directory structure of all of the modules your script used...
Cheers,
Ben
fork() you! (Score:1)
Promising an actual living fork() so I can play robot wars in the background without getting too clunky and memory short.
New and possibly recursive regex code on which you can coredump but will be very nice for tag matching of all sorts.
Sigh, the only immediate problem is can only install on NT. wait till March for '98.
Re:learning perl... (Score:3)
Next try Advanced Perl Programming by Sriram Srinivasan. This will introduce the higher level concepts of Perl that will explain what about Perl makes it suitable for various tasks.
Before one can use Perl effectively one must wade through a substantial fraction of its excellent man pages. Actually, Perl's man pages are written in its own lightly marked up documentation format perldoc which can be translated into man pages, plain text, html, whatever. I read it "straight" by downloading the latest development Perl source.
Perl is basically a fusion of the C library functions and Unix system calls with excellent abilities to handle regular expressions. For this reason is is quite probable that one can learn more about actually using Perl by reading W. Richard Stevens book Advanced Programming in the UNIX Environment then any beginners Perl book.
For my money if one had only about 40 US dollars to spend on one Perl book, I'd get Tom Christiansen and Nathan Torkington's Perl Cookbook and try to make do learning from the Perl manpages.
Is this really worthy of a listing on Slashdot? (Score:1)
There must be better stuff than this being submitted, or have you guys ignored everyone enough that no one is making good submissions anymore?
offtopic (so sue me) (Score:1)
Where's the maximum threshold? On Slashdot, It seems like the troll comments are better than the highly moderated ones at least half the time! Don't get me wrong, there are good comments from people with great thoughts and opinions, but it seems like a lot of them are just trying too hard and not speaking their true voice because they want karma/community acceptance/whatever (JonKatz theme). A troll doesn't care what you think.
I'm looking forward to Signal 11 [slashdot.org]'s upcoming gallery of the greatest /. trolls...
Perl does compilation (Score:2)
How can I compile my Perl program into byte code or C?
Malcolm Beattie has written a multifunction backend compiler, available from CPAN, that can do both these things. It is included in the perl5.005 release, but is still considered experimental. This means it's fun to play with if you're a programmer but not really for people looking for turn-key solutions.
Merely compiling into C does not in and of itself guarantee that your code will run very much faster. That's because except for lucky cases where a lot of native type inferencing is possible, the normal Perl run time system is still present and so your program will take just as long to run and be just as big. Most programs save little more than compilation time, leaving execution no more than 10-30% faster. A few rare programs actually benefit significantly (like several times faster), but this takes some tweaking of your code. You'll probably be astonished to learn that the current version of the compiler generates a compiled form of your script whose executable is just as big as the original perl executable, and then some. That's because as currently written, all programs are prepared for a full eval() statement. You can tremendously reduce this cost by building a shared libperl.so library and linking against that. See the INSTALL podfile in the perl source distribution for details. If you link your main perl binary with this, it will make it miniscule. For example, on one author's system, /usr/bin/perl is only 11k in size!
In general, the compiler will do nothing to make a Perl program smaller, faster, more portable, or more secure. In fact, it will usually hurt all of those. The executable will be bigger, your VM system may take longer to load the whole thing, the binary is fragile and hard to fix, and compilation never stopped software piracy in the form of crackers, viruses, or bootleggers. The real advantage of the compiler is merely packaging, and once you see the size of what it makes (well, unless you use a shared libperl.so), you'll probably want a complete Perl install anyway.
(back to me) I also noticed GNU/Hurd is now supported. Hmm.. mebbe it's time to try that (the Hurd) out.
Learning Perl plus some other ideas... (Score:1)
Re:learning perl... (Score:2)
Lots of people will recommend 'Learning Perl', but I strongly recommend not buying that book. Unless you have problems falling asleep, then this book will be useful. I would recommend Nigel Chapmans "Perl: The Programmers Compagnion", a truely excellent book - specially if you already can program in another language. Half of the authors of Learning Perl prefer Nigel Chapmans book.
I've heard good things about Andrew Johnsons "Elements of Programming with Perl". I haven't read the book yet though, so I hesitate to recommend it. On the other hand, it mentions my name and discusses some code of me... (of course, that could be held against the book as well).
After learning Perl, it becomes more difficult. There are a lot of Perl books, but most of them are just a waste. I've more than 15 Perl and Perl related books in my bookcase, but there are two I've actually found useful: Mastering Regular Expressions, and The Perl Cookbook. The former is three years old, and hence doesn't discuss any of the new and advanced regular expression stuff though. But it gives a great insight on how to avoid writing inefficient regular expressions. But the best Perl book remains the Perl Cookbook. Despite it being an O'Reilly book.
-- Abigail
Re:learning perl... (Score:1)
Recognise this: "Perl makes easy things easy, and hard things possible"? Don't start with a regular expressions tome or an advanced manual, start with a friendly, accessible book that will tell you what you want to know to get you started. Learning Perl is ideal.
Your code might not pass muster with the Self-Important Pseuds (whatever happened to the real gurus [tuxedo.org] who knew how to be humble?).
But hell - your script will work, and you won't be scared off by people fearing for their jobs.
Enjoy Perl - it's great!
--
Re:Thanks! (Score:1)
I don't know about you but I use the windows version (activestate) of perl everyday and am VERY happy with it.
Anyone know how it fares up in a production (WWW server) enviroment?
Jay
-- polish ccs mirror [prawda.pl]
I *DID* read the announcement, AC and moderator!!! (Score:2)
If you read the whole original announcement, you find among other things, renaming "byte::" to "bytes::". Do you call this a bugfix? And what exactly is "default mkdir() mode argument to 0777"? Changing default mode arguments is definitely *NOT* a bugfix. Fixing a memory leak is a bugfix, but what about "generalize "%v" format into a flag for any integral format type: "%vd", "%v#o", "%*vX", etc are allowed"?
The reason I asked is because I have some doubts about the way Perl is evolving. When I used it first, about eight years ago, it seemed to me a pretty cool little language, but I never had the chance to use (and learn) it more extensively. A couple of months ago, I bought "The Perl CD Bookshelf" from O'Reilly and was surprised with all the features that had been added to Perl. Adding unneeded features is the quickest way to add bugs to a system. Look at the MS-Office or MS-Windows releases for the last ten years or so for further examples.
Seeing this announcement, if you only read the slashdot homepage, you think it's just bugfixes. If you go further and read the "announcement" itself, you see it labelled as a "development version", with "mostly bugfixes". Well, as I see it, if you are developing, you are not fixing bugs, you are adding new features. With new features come new bugs. Looking further, at the "original announcement", you need to be a Perl guru to understand all the notes.
I really like the Linux system, having a set of versions for adding features and a separate and parallel set of versions just for bugfixes. Although this system is sometimes not followed very religiously, it's an excellent basic principle. So, my original question still stands: is this version intended for fixing bugs or for adding new features or a little of each? Are they adding new bugs to Perl faster than they are debugging?
This rather long comment could have been avoided if you did what you preach and had actually read the whole original announcement [mpe.mpg.de]. Clueless moderator, clueless AC, perhaps they are the same?
Moderators, take note:
1)Read the moderation guidelines before moderating anything
Re:Thanks! (Score:1)
I consider degraded performance under a heavy load to be quite preferrable to failure under that load. I've seen systems that do both. Hey, I've worked on a couple of systems that have gracefully degraded under loads well outside their specs, so I'm biased. Honestly, while Slashdot being slow is noticable, I have not seen it reach the point of being unusable. I do hope the guys can throw some additional hardware at the problem, but for now I'll muddle through.
Re:learning perl... (Score:1)
Re:learning perl... (Score:2)
I'd trust what Mark-Jason Dominus said [plover.com] or what Tom Christiansen said [perl.com] about the Perl for Dummies book.
I haven't looked at it yet, but I've heard good things about Elements of Programming with Perl. [perl.org] I've also been told that MacPerl: Power and Ease [macperl.com] does a good job of teaching perl programming as well as teaching the MacOS specific areas of MacPerl.
Re:learning perl... (Score:1)
Re:learning perl... (Score:2)
This is exactly why computer books are expensive. If you make "Milking cows for dummies", you've got a high upfront cost (writing the book), but you can make that back over a long period of time, as cows in 1990 are the same as cows in 2000 and 2010.
On the other hand, if you make "Cowsoft Milker 2.0 for dummies", then you have the same upfront cost, but you can only sell the book until Milker 2.1 comes out. Sometimes you can revise the book, but this is an additional cost.
Re:Perl does compilation (Score:1)
Re:learning perl... (Score:2)
Well, that book put me to sleep, but I then handed it to a colleague who needed to learn perl, and never did get it back. For what it's worth, that person was an intelligent non-programmer. Apparently that book ended up on a Great Journey and has landed on the desks and shelves of many people just like my so-called, book-stealing friend.
I think the only perl books I don't have now but might want (I have these two) are Perl in a Nutshell (looks like a really handy reference) and possibly Object Oriented Perl, because it was written by Damian Conway, whose papers and projects I have found very useful in the past.
Re:when are they going to.. (Score:1)
Re:learning perl... (Score:1)
Elements of Programming Perl (Score:1)
Re:Is /. turning into Freshmeat? (Score:1)
If you don't like it, don't read it.
I don't have the time to check Freshmeat all the time, so it's good to see important things here.
--Carpe diem!
Re:Perl NSA (Score:1)
Re:TCL is at 8.3 (Score:1)
Re: (Score:2)
Re:Thanks! (Score:1)
Oh well, nevermind guys. Here's a hint: I was going for "Funny" rather than "Flamebait", and I didn't mean to post at 2 anyhow, (was using Lynx, somehow missed that checkbox though) but I guess I'll start putting "HUMOR:" back into the subject line. That usually helps.
For some real opinion, I think Slashdot should use something fast instead of Perl. However, I'm impressed that they manage to make so much stuff static, and make the rest of the code pretty fast regardless, so maybe they can handle it.
And I've seen Slashdot unusable under load, and not from network bandwidth. Ping times are very fast, response times from the web server are very slow. Go figure.
---
pb Reply or e-mail; don't vaguely moderate [152.7.41.11].