Subject: | alias on push($arrref, ...) failes (segfault) |
From push-Documentation:
Starting with Perl 5.14, "push" can take a scalar EXPR, which must hold a reference to an unblessed array. The argument
will be dereferenced automatically. This aspect of "push" is considered highly experimental. The exact behaviour may
change in a future version of Perl.
$ perl -MData::Alias -we 'my $a; alias push(@$a, 1); print "ok\n";'
ok
$ perl -MData::Alias -we 'my $a; alias push($a, 1); print "ok\n";'
Segmentation fault (core dumped)
$ perl -v
This is perl 5, version 18, subversion 1 (v5.18.1) built for x86_64-linux
...
OK, it is highly experimental, but Data::Alias can't work with it.