From: Daniel Chetlin Date: Sun, 20 Aug 2000 21:40:25 +0000 (-0700) Subject: Array context keeps slithering in. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f9a1036d234a761c33445663d282383d453f7c5f;p=p5sagit%2Fp5-mst-13.2.git Array context keeps slithering in. Subject: Re: 5.7.0 getting really close, new snapshot: perldelta, Storable Message-ID: <20000820214025.C29387@ilmd.chetlin.org> p4raw-id: //depot/perl@6740 --- diff --git a/ext/Storable/Storable.xs b/ext/Storable/Storable.xs index 9716b56..1efbc0d 100644 --- a/ext/Storable/Storable.xs +++ b/ext/Storable/Storable.xs @@ -1226,7 +1226,7 @@ I32 flags; /* * array_call * - * Call routine obj->hook(cloning) in array context. + * Call routine obj->hook(cloning) in list context. * Returns the list of returned values in an array. */ static AV *array_call(obj, hook, cloning) diff --git a/lib/Pod/InputObjects.pm b/lib/Pod/InputObjects.pm index 9c89413..352373b 100644 --- a/lib/Pod/InputObjects.pm +++ b/lib/Pod/InputObjects.pm @@ -393,7 +393,7 @@ sub parse_tree { my $position = $pod_para->file_line(); Returns the current filename and line number for the paragraph -object. If called in an array context, it returns a list of two +object. If called in a list context, it returns a list of two elements: first the filename, then the line number. If called in a scalar context, it returns a string containing the filename, followed by a colon (':'), followed by the line number. @@ -686,7 +686,7 @@ sub parse_tree { my $position = $pod_seq->file_line(); Returns the current filename and line number for the interior sequence -object. If called in an array context, it returns a list of two +object. If called in a list context, it returns a list of two elements: first the filename, then the line number. If called in a scalar context, it returns a string containing the filename, followed by a colon (':'), followed by the line number. diff --git a/pod/perldebtut.pod b/pod/perldebtut.pod index b553aa4..93fa69d 100644 --- a/pod/perldebtut.pod +++ b/pod/perldebtut.pod @@ -168,7 +168,7 @@ break/watch/actions |[|]db_cmd Send output to pager ![!] syscmd Run cmd in a subprocess q or ^D Quit R Attempt a restart Data Examination: expr Execute perl code, also see: s,n,t expr - x|m expr Evals expr in array context, dumps the result or lists methods. + x|m expr Evals expr in list context, dumps the result or lists methods. p expr Print expression (uses script's current package). S [[!]pat] List subroutine names [not] matching pattern V [Pk [Vars]] List Variables in Package. Vars can be ~pattern or !pattern.