NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Less Boilerplate versus No Boilerplate (Score:1)
I'd like to see all new features enabled by default, but I can accept as a compromise the alternative of the meaning of
use VERSIONchanging the way you describe. That's a decent balance between forward compatibility and modern behavior.Thank you (Score:1)
Ordinary morality is for ordinary people. -- Aleister Crowley
I'm sorry to disagree (Score:1)
Seriously, you did a very good job of putting forth your point of view, and I wish I could simply agree with it. But I can't. Saying that when you ask for a particular version of Perl, you won't get new features, forces anyone implementing new features to have to put a check in their code to detect whether to go with the new or the old version of the feature. This would force the internals to get even more messy than they already are, because you're now maintaining a promise for perfect backwards compati
Re: (Score:1)
You make a good point. I think "good enough" backwards compatibility would still work fine though. My main concern is the addition of new pragmas that might be added to be loaded on default.
When I write
use 5.010;I want to getgiven,when,say, and all the rest. But I don't expectautodie,strict,warningsand other such things to be turned on for me automatically. That could seriously break my code. I really like autodie, but I have some legacy code that does its own error handling. autodie doesRe: I'm sorry to disagree (Score:1)
Jarich, thank you very much for expressing so clearly what it also my point. Yes, we may be "backward compatibility nazis" like some people are saying, but those people should know that for most companies out there, Perl is just like AWK, except more powerful. You expect it to always works the same way you expect the Sun to raise each morning.
Also, to illustrate what Jarich said, here is a ~250 lines module which is perfectly valid and working Perl code:
Now, l
Close the world. txEn eht nepO
No java-like startup times, please (Score:1)
I tried out chromatic's boilerplate (with 5.8.9, as my 5.10.0 does not have all modules installed, and without m3): /usr/perl5.8.9@RC2/bin/perl /tmp/chro.pl 0,31s user 0,02s system 65% cpu 0,503 total
Ouch. The empty perl programm took almost no time: /usr/perl5.8.9@RC2/bin/perl -e 1 0,00s user 0,00s system 38% cpu 0,007 total
So if this should really go into perl some day, it has to be much more efficient.