summaryrefslogtreecommitdiff
path: root/pod/perlfaq9.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-04-10 19:45:08 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-04-10 19:45:08 +0000
commit5cd0b561c2b8d21210f0eb90d689d190c3da3c72 (patch)
tree42e2bbfb2cbd33ec132c4c29d585beda2b5275db /pod/perlfaq9.pod
parentd7aacf4ee7905e48b1ff143784e4166839441b3c (diff)
downloadperl-5cd0b561c2b8d21210f0eb90d689d190c3da3c72.tar.gz
PerlFAQ sync.
p4raw-id: //depot/perl@19188
Diffstat (limited to 'pod/perlfaq9.pod')
-rw-r--r--pod/perlfaq9.pod8
1 files changed, 4 insertions, 4 deletions
diff --git a/pod/perlfaq9.pod b/pod/perlfaq9.pod
index ec0a4f5b74..f73c619b98 100644
--- a/pod/perlfaq9.pod
+++ b/pod/perlfaq9.pod
@@ -1,6 +1,6 @@
=head1 NAME
-perlfaq9 - Networking ($Revision: 1.14 $, $Date: 2002/12/06 07:40:11 $)
+perlfaq9 - Networking ($Revision: 1.15 $, $Date: 2003/01/31 17:36:57 $)
=head1 DESCRIPTION
@@ -557,17 +557,17 @@ SMTP via L<Net::SMTP>.
=head2 How do I read mail?
While you could use the Mail::Folder module from CPAN (part of the
-MailFolder package) or the Mail::Internet module from CPAN (also part
+MailFolder package) or the Mail::Internet module from CPAN (part
of the MailTools package), often a module is overkill. Here's a
mail sorter.
#!/usr/bin/perl
- # bysub1 - simple sort by subject
+
my(@msgs, @sub);
my $msgno = -1;
$/ = ''; # paragraph reads
while (<>) {
- if (/^From/m) {
+ if (/^From /m) {
/^Subject:\s*(?:Re:\s*)*(.*)/mi;
$sub[++$msgno] = lc($1) || '';
}