in reply to What is the difference between the constant construct in Perl and the Readonly construct in Perl?
If I am not mistaken constant is also assigned at compile time. So using Readonly inside a function to take the parameters would work, the same would not work for constant.Readonly my @vals => (1,2,3,4); Readonly my %vals => (1=>2);
|
|---|