develooper Front page | perl.perl6.language | Postings from May 2005

Re: Transparent / Opaque references

Thread Previous | Thread Next
May 27, 2005 16:19
Re: Transparent / Opaque references
Message ID:
Juerd skribis 2005-05-28  1:15 (+0200):
> There are named arrays, @foo, and anonymous arrays, [].
> There are named hashes, %foo, and anonymous hashes, {}.
> There are only anonymous pairs. You can't dereference a pair, or bind a
> name to it. 

I forgot an important one:

There are named scalars, $foo, and anonymous scalars, but they are
'literals', and read only, like 42.

There is no way to get an anonymous rw scalar, is there?


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