in reply to •Re: Re: •Re: On Declaration
in thread On Declaration
True enough. I more meant the mental tangle that you can get in if you think of a reference to an array as being the same as the scalar that holds the reference. On face value its an obvious distinction, but I think people often get confused when scalars and scalar references get involved. For instance (and I know you know this one) how many variables are there in the following code
my ($x,$y); $x=\$y; $y=\$x; my $aref=[$x,$y];
Anyway. :-)
|
|---|