about summary refs log tree commit
diff options
context:
space:
mode:
authorGraham Barr <gbarr@pobox.com>1998-02-24 01:27:46 +0000
committerGraham Barr <gbarr@pobox.com>1998-02-24 01:27:46 +0000
commit8cedc2a310c9591e86c06352f6e7faac47479b83 (patch)
treecdf369ad830203b544ddbc2c052f7553805200e8
parent93fc2ae682de13eedd29471d0e3f20d01d182647 (diff)
downloadperl-libnet-8cedc2a310c9591e86c06352f6e7faac47479b83.tar.gz
Net::POP3
- Remove use of map in a void context

-rw-r--r--Net/POP3.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/Net/POP3.pm b/Net/POP3.pm
index 6a507a0..bf3e219 100644
--- a/Net/POP3.pm
+++ b/Net/POP3.pm
@@ -13,7 +13,7 @@ use Net::Cmd;
 use Carp;
 use Net::Config;
 
-$VERSION = "2.13"; # $Id: //depot/libnet/Net/POP3.pm#7 $
+$VERSION = "2.14"; # $Id: //depot/libnet/Net/POP3.pm#8 $
 
 @ISA = qw(Net::Cmd IO::Socket::INET);
 
@@ -214,8 +214,7 @@ sub list
  my $info = $me->read_until_dot
         or return undef;
 
- my %hash = ();
- map { /(\d+)\D+(\d+)/; $hash{$1} = $2; } @$info;
+ my %hash = map { (/(\d+)\D+(\d+)/) } @$info;
 
  return \%hash;
 }