diff options
author | Daniel Chetlin <daniel@chetlin.com> | 2000-08-03 17:22:44 -0700 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-04 12:26:33 +0000 |
commit | 90fdbbb75512007b809510f03fc507ff5c145e16 (patch) | |
tree | 49ec382ac772ca6ab35d1efbd12fadd4a242db02 /pod/perlembed.pod | |
parent | 9300ef0fea165be49d88144848cf782932f9cfb9 (diff) | |
download | perl-90fdbbb75512007b809510f03fc507ff5c145e16.tar.gz |
Re: Array vs. List context
Message-ID: <20000804002244.A5924@ilmd.chetlin.org>
p4raw-id: //depot/perl@6522
Diffstat (limited to 'pod/perlembed.pod')
-rw-r--r-- | pod/perlembed.pod | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pod/perlembed.pod b/pod/perlembed.pod index dce785e6c2..1787e4b2eb 100644 --- a/pod/perlembed.pod +++ b/pod/perlembed.pod @@ -356,7 +356,7 @@ made. int matches(SV *string, char *pattern, AV **matches); Given an C<SV>, a pattern, and a pointer to an empty C<AV>, -matches() evaluates C<$string =~ $pattern> in an array context, and +matches() evaluates C<$string =~ $pattern> in a list context, and fills in I<matches> with the array elements, returning the number of matches found. Here's a sample program, I<match.c>, that uses all three (long lines have @@ -434,7 +434,7 @@ been wrapped here): /** matches(string, pattern, matches) ** - ** Used for matches in an array context. + ** Used for matches in a list context. ** ** Returns the number of matches, ** and fills in **matches with the matching substrings |