Perl 5.14 released
news.perlfoundation.org
Perl 5.14 released
1–10 of 27 posts
Re: Perl 5.14 released
#2There'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
#3Re: Perl 5.14 released
#4What is happening with perl 6? And will perl developers actively work on perl 5 after .14?
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
#5Re: Perl 5.14 released
#6A 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…
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
#7A 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.)
(Incidentally, perlcritic will warn you if you have a map that modifies $_.)
Re: Perl 5.14 released
#8Re: Perl 5.14 released
#9There 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
#10A 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…