| Newsgroups |
perl.cvs.perlfaq |
| Message-ID |
<[email protected]> |
cvsuser 02/03/26 20:56:01
Modified: . perlfaq6.pod
Log:
* Rephrase for clarity.
* Touch on both intent and efficacy arguments
Revision Changes Path
1.9 +7 -5 perlfaq/perlfaq6.pod
Index: perlfaq6.pod
===================================================================
RCS file: /home/perlcvs/perlfaq/perlfaq6.pod,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -w -r1.8 -r1.9
--- perlfaq6.pod 31 Jan 2002 04:27:55 -0000 1.8
+++ perlfaq6.pod 27 Mar 2002 04:56:01 -0000 1.9
@@ -1,6 +1,6 @@
=head1 NAME
-perlfaq6 - Regular Expressions ($Revision: 1.8 $, $Date: 2002/01/31 04:27:55 $)
+perlfaq6 - Regular Expressions ($Revision: 1.9 $, $Date: 2002/03/27 04:56:01 $)
=head1 DESCRIPTION
@@ -634,10 +634,12 @@
=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?