diff options
Diffstat (limited to 'pod/perldata.pod')
-rw-r--r-- | pod/perldata.pod | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/perldata.pod b/pod/perldata.pod index 38d5e9380d..dc2975a7d4 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -196,7 +196,7 @@ You can truncate an array down to nothing by assigning the null list () to it. The following are equivalent: @whatever = (); - $#whatever = $[ - 1; + $#whatever = -1; If you evaluate a named array in a scalar context, it returns the length of the array. (Note that this is not true of lists, which return the |