> -Original Message-
> From: Rob Dixon [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 14, 2008 8:59 PM
> To: beginners@perl.org
> Cc: Kevin Viel
> Subject: Re: references to complex data structures
>
> Kevin Viel wrote:
> > Consider the following anony
Kevin Viel wrote:
Consider the following anonymous array of anonymous arrays:
my $a = [ [ 00 , 01 ]
, [ 10 , 11 ]
] ;
I can print the first element of the first anonymous array:
print "$$a[ 0 ][ 0 ]\n" ;
or, equivalently, I can explicit use bracers to dereference it:
print "$
Kevin Viel wrote:
Consider the following anonymous array of anonymous arrays:
my $a = [ [ 00 , 01 ]
, [ 10 , 11 ]
] ;
I can print the first element of the first anonymous array:
print "$$a[ 0 ][ 0 ]\n" ;
or, equivalently, I can explicit use bracers to dereference it:
print "$
Consider the following anonymous array of anonymous arrays:
my $a = [ [ 00 , 01 ]
, [ 10 , 11 ]
] ;
I can print the first element of the first anonymous array:
print "$$a[ 0 ][ 0 ]\n" ;
or, equivalently, I can explicit use bracers to dereference it:
print "${$a}[ 0 ][ 0 ]\n" ;