summaryrefslogtreecommitdiff
path: root/pod/perllol.pod
diff options
context:
space:
mode:
authorTom Christiansen <tchrist@perl.com>1998-06-13 16:19:32 -0600
committerGurusamy Sarathy <gsar@cpan.org>1998-06-15 01:37:12 +0000
commit5a964f204835a8014f4ba86fc91884cff958ac67 (patch)
treeb1ad7153799ba133ce772012c9dc05ea615f1c6e /pod/perllol.pod
parentad973f306c11e119dc3a8448590409962bde25db (diff)
downloadperl-5a964f204835a8014f4ba86fc91884cff958ac67.tar.gz
documentation update from tchrist
Message-Id: <199806140419.WAA20549@chthon.perl.com> Subject: doc patches p4raw-id: //depot/perl@1132
Diffstat (limited to 'pod/perllol.pod')
-rw-r--r--pod/perllol.pod16
1 files changed, 3 insertions, 13 deletions
diff --git a/pod/perllol.pod b/pod/perllol.pod
index 1de3b1ad74..0e6796b50f 100644
--- a/pod/perllol.pod
+++ b/pod/perllol.pod
@@ -26,7 +26,7 @@ a declaration of the array:
bart
Now you should be very careful that the outer bracket type
-is a round one, that is, parentheses. That's because you're assigning to
+is a round one, that is, a parenthesis. That's because you're assigning to
an @list, so you need parentheses. If you wanted there I<not> to be an @LoL,
but rather just a reference to it, you could do something more like this:
@@ -144,17 +144,7 @@ you'd have to do something like this:
push @$ref_to_LoL, [ split ];
}
-Actually, if you were using strict, you'd have to declare not only
-$ref_to_LoL as you had to declare @LoL, but you'd I<also> having to
-initialize it to a reference to an empty list. (This was a bug in
-perl version 5.001m that's been fixed for the 5.002 release.)
-
- my $ref_to_LoL = [];
- while (<>) {
- push @$ref_to_LoL, [ split ];
- }
-
-Ok, now you can add new rows. What about adding new columns? If you're
+Now you can add new rows. What about adding new columns? If you're
dealing with just matrices, it's often easiest to use simple assignment:
for $x (1 .. 10) {
@@ -310,4 +300,4 @@ perldata(1), perlref(1), perldsc(1)
Tom Christiansen <F<tchrist@perl.com>>
-Last udpate: Sat Oct 7 19:35:26 MDT 1995
+Last update: Thu Jun 4 16:16:23 MDT 1998