in reply to Re: Readonly oddity
in thread Readonly oddity

The Synopsis for Readonly 1.03 and 2.00 do in fact show this form:

# Alternate form (Perl 5.8 and later) Readonly $sca => $initial_value; Readonly my $sca => $initial_value; Readonly @arr => @values; Readonly my @arr => @values; Readonly %has => (key => value, key => value, ...); Readonly my %has => (key => value, key => value, ...);
Readonly-1.03 Readonly-2.00

Replies are listed 'Best First'.
Re^3: Readonly oddity
by tangent (Parson) on Jan 26, 2016 at 16:22 UTC
    I think the OP knows the correct way to use the module, the point is that when it is used incorrectly it throws an error in v1.3 but doesn't in v2.0

      It was a reply to ww, not the OP, because he said it wasn't documented that way.

      Thanks for playing though. Enjoy your parting gift.