develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [PATCH for discussion] new feature: clamp %hash

Thread Previous | Thread Next
Arthur Bergman
July 29, 2001 01:38
Re: [PATCH for discussion] new feature: clamp %hash
Message ID:
01-07-29 03.05, skrev Michael G Schwern på följande:

>> my %hash = (a => 1, b => 2);
>> my $ref  = \$hash;
>> readonly \%hash;     # clamped
> C<readonly %hash> should be achievable by simply using the \% prototype.

No, since you can do readonly $scalar aswell.

I have the same problem with

A \($|@|%) prototype or something like that taking a reference to anything
would be a very very very welcome addition.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About