Live data from Hacker News

Perl 5.14 released

news.perlfoundation.org

1–10 of 27 posts

Re: Perl 5.14 released

#2
A fuller changelog is here: http://perl5.git.perl.org/perl.git/blob/HEAD:/pod/perldelta....

There's a lot going on here, but a couple jump out at me:

* Non-destructive substitutions (with a new 'r' option)

* An experimental feature that allows you to perform operations like push, pop, splice, keys and company directly on (unblessed) array and hash references. (There's a pretty strong warning that this feature is subject to change.)

There are also enhancements for Unicode, regular expressions, exception handling and more.

Re: Perl 5.14 released

#4
post #3

What is happening with perl 6? And will perl developers actively work on perl 5 after .14?

Perl 6 is a completely different programming language and is generally unrelated to Perl 5 except in name, history, and a common group of comitters and users.

Perl 5 releases a new major version every year, and a new development version every month. So 5.16 will be around next spring, and 5.18 will be around the spring after that.

With thousands of users around the world, Perl 5 is not going away any time soon.

Re: Perl 5.14 released

#6

A fuller changelog is here: http://perl5.git.perl.org/perl.git/blob/HEAD:/pod/perldelta.... There's a lot going on here, but a couple jump out at me: * Non-destructive substitutions (with a new 'r' option) * An experimental feature that allows you to perform operations like push , pop , splice , keys and company directly on (unblessed) array and hash references. (There's a pretty strong warning that this feature is s…

Hmmm... perldoc.perl.org doesn't have 5.14 as an option yet. I assume that the 'r' option is meant to prevent things like this:

  my @list = (... stuff ...);
  my @other_list = map { s/SOMETHING//; $_ } @list;
(The result of this is that @other_list and @list are equal because the substitution destructively affects the original list.)

Re: Perl 5.14 released

#7
post #6

A fuller changelog is here: http://perl5.git.perl.org/perl.git/blob/HEAD:/pod/perldelta.... There's a lot going on here, but a couple jump out at me: * Non-destructive substitutions (with a new 'r' option) * An experimental feature that allows you to perform operations like push , pop , splice , keys and company directly on (unblessed) array and hash references. (There's a pretty strong warning that this feature is s…

Hmmm... perldoc.perl.org doesn't have 5.14 as an option yet. I assume that the 'r' option is meant to prevent things like this: my @list = (... stuff ...); my @other_list = map { s/SOMETHING//; $_ } @list; (The result of this is that @other_list and @list are equal because the substitution destructively affects the original list.)

That's exactly why.

(Incidentally, perlcritic will warn you if you have a map that modifies $_.)

Re: Perl 5.14 released

#8
There are many important updates regarding memory use. That's an interesting improvement especially when you have long lasting Perl script in distributed environment. Especially that we can gain some memory on some data structure, it's always an interesting gain.

Re: Perl 5.14 released

#9
post #8

There are many important updates regarding memory use. That's an interesting improvement especially when you have long lasting Perl script in distributed environment. Especially that we can gain some memory on some data structure, it's always an interesting gain.

We have been testing perl 5.14 RC2 version in one of our dev box during last week, and the performance improvements are just monstrous! Got a 20-30% faster app straight out of the box, and some hefty memory savings. It's really noticeable on smaller scripts. Can't wait to put 5.14 in production!

Re: Perl 5.14 released

#10

A fuller changelog is here: http://perl5.git.perl.org/perl.git/blob/HEAD:/pod/perldelta.... There's a lot going on here, but a couple jump out at me: * Non-destructive substitutions (with a new 'r' option) * An experimental feature that allows you to perform operations like push , pop , splice , keys and company directly on (unblessed) array and hash references. (There's a pretty strong warning that this feature is s…

There's a more readable changelog here:

http://search.cpan.org/~jesse/perl-5.14.0/pod/perldelta.pod

Post reply on HN