in reply to Re: How to dereference array of ref.s?
in thread How to dereference array of ref.s?
versions of perl that have this feature enable or usable
The Postfix Dereference Syntax is enabled by default in Perl 5.24 and above. E.g. on v5.26:
$ perl -wMstrict -e' my $q="qwer"; my @a=(\$q); print $a[0]->$*,"\n";' qwer
However, if you want it to interpolate in strings, you do need to enable the postderef_qq feature, for example via the v5.24 feature bundle ("use 5.024;"):
$ perl -wM5.024 -e' my $q="qwer"; my @a=(\$q); print "$a[0]->$*\n";' qwer
|
|---|