X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperldsc.pod;h=623e3679101cc7e238bb41a7e86ea4f9bd6cde17;hb=83ce3e12e086bc5a21f37af9378b7c01fa5d73d8;hp=158322b61cbe32af985fdb536a723b9af18220a0;hpb=d74e8afc9309529cf5c6c4390fc311850865d506;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perldsc.pod b/pod/perldsc.pod index 158322b..623e367 100644 --- a/pod/perldsc.pod +++ b/pod/perldsc.pod @@ -71,8 +71,8 @@ these types of data structures. =head1 REFERENCES X X X X -The most important thing to understand about all data structures in Perl --- including multidimensional arrays--is that even though they might +The most important thing to understand about all data structures in +Perl--including multidimensional arrays--is that even though they might appear otherwise, Perl C<@ARRAY>s and C<%HASH>es are all internally one-dimensional. They can hold only scalar values (meaning a string, number, or a reference). They cannot directly contain other arrays or @@ -199,7 +199,7 @@ much harder to read: Is it the same? Well, maybe so--and maybe not. The subtle difference is that when you assign something in square brackets, you know for sure it's always a brand new reference with a new I of the data. -Something else could be going on in this new case with the C<@{$AoA[$i]}}> +Something else could be going on in this new case with the C<@{$AoA[$i]}> dereference on the left-hand-side of the assignment. It all depends on whether C<$AoA[$i]> had been undefined to start with, or whether it already contained a reference. If you had already populated @AoA with