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

Re: Transparent / Opaque references

Thread Previous | Thread Next
From:
Juerd
Date:
May 27, 2005 16:19
Subject:
Re: Transparent / Opaque references
Message ID:
20050527231943.GB31996@c4.convolution.nl
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?


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About