RE: references to complex data structures

2008-01-15 Thread Kevin Viel
> -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

Re: references to complex data structures

2008-01-14 Thread Rob Dixon
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 "$

Re: references to complex data structures

2008-01-14 Thread Gunnar Hjalmarsson
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 "$

references to complex data structures

2008-01-14 Thread Kevin Viel
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" ;