Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
this POD is either confusing or plain wrong
https://perldoc.perl.org/perlref#Declaring-a-Reference-to-a-Variable
Beginning in v5.26.0, the referencing operator can come after my, state, our, or local. This syntax must be enabled with use feature 'declared_refs' . It is experimental, and will warn by default unless no warnings experimental::refaliasing is in effect.
In reality is the warning disabled with no warnings 'experimental::declared_refs'; the experimental::refaliasing warning belongs to https://perldoc.perl.org/perlref#Assigning-to-References Sample code:
NB: that use feature qw(declared_refs) doesn't seem to make sense without the other feature. my \@arr; without assignment will create a new warning "Useless use of single ref constructor in void context"
Cheers Rolf In reply to POD for use feature 'declared_refs' wrong by LanX
|
|