diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-04-08 18:56:58 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-04-08 18:56:58 +0000 |
commit | f05bbc4047b4e519eb0edbaf2fce2004f4838d1a (patch) | |
tree | de226ce5a9d015aefd62d1b704bb24f8d232801f /pod/perlfaq6.pod | |
parent | fdd579e2dc5d0da16b7e86246a01f0d838120df7 (diff) | |
download | perl-f05bbc4047b4e519eb0edbaf2fce2004f4838d1a.tar.gz |
FAQ sync. (Ignoring the few URL differences for now.)
p4raw-id: //depot/perl@15813
Diffstat (limited to 'pod/perlfaq6.pod')
-rw-r--r-- | pod/perlfaq6.pod | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pod/perlfaq6.pod b/pod/perlfaq6.pod index dd76588ec0..6f9ee452ae 100644 --- a/pod/perlfaq6.pod +++ b/pod/perlfaq6.pod @@ -1,6 +1,6 @@ =head1 NAME -perlfaq6 - Regular Expressions ($Revision: 1.8 $, $Date: 2002/01/31 04:27:55 $) +perlfaq6 - Regular Expressions ($Revision: 1.10 $, $Date: 2002/04/07 18:32:57 $) =head1 DESCRIPTION @@ -634,10 +634,12 @@ L<perlfaq2>). =head2 What's wrong with using grep or map in a void context? -Both grep and map build a return list, regardless of their context. -This means you're making Perl go to the trouble of building up a -return list that you then just ignore. That's no way to treat a -programming language, you insensitive scoundrel! +The problem is that both grep and map build a return list, +regardless of the context. This means you're making Perl go +to the trouble of building a list that you then just throw away. +If the list is large, you waste both time and space. If your +intent is to iterate over the list then use a for loop for this +purpose. =head2 How can I match strings with multibyte characters? |