Luke Palmer skribis 2005-09-01 23:43 (+0000):
> I would probably say that scalars never automatically dereference. 
> It's lists and hashes that automatically dereference/enreference. 

arrays

> That is, everything is a scalar, really, but if you have an @ or a %
> on the front of your variable, that means that you flatten yourself
> into specific kinds of contexts.

    sub foo (@bar) { ... }

    foo $aref;

Here $aref is dereferenced because of the Array context. The scalar
can't do this by itself, of course.


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

Reply via email to