I read some of the perl513 * delta files, and I saw some of the new features coming in Perl 5.14. Starting with Perl 5.13.7, many of the array / hash functions will work in array / hash refs as well . Although this is probably mostly seen as syntactic sugar, or Perl does what you expect, I wonder if this will / should change the paradigm for declaring data structures in Perl? With the famous warning that it violates compatibility with Perl headphones, what are the arguments for and against using anonymous structures in the first place?
For instance:
use strict;
use warnings;
use 5.13.7;
my $hashref = {
english => 'hello',
spanish => 'hola',
french => 'bon jour'
};
foreach my $greeting (keys $hashref) {
say $hashref->{$greeting};
}
rather than the more traditional way to use a named hash ( %hash).
P.S. , CW, .