perl -E 'use constant AREF => [1..4]; say "@{+AREF}"; AREF->[2] = 99; say "@{+AREF}"'
Good post, this bit in particular reminded me of the recent thread constant vector on exactly that topic.
In reply to Re^2: Using hashref values in constant declarations.
by haukex
in thread Using hashref values in constant declarations.
by nameofmyuser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |