From: short <> Date: Fri, 17 Dec 2004 20:55:11 +0000 (+0000) Subject: Fix Perl compatibility: &import -> &in X-Git-Tag: bp_lace~18 X-Git-Url: http://git.jankratochvil.net/?p=PerlMail.git;a=commitdiff_plain;h=3a6777a05ce93e572245ca0753e288c680d1f2a3 Fix Perl compatibility: &import -> &in --- diff --git a/PerlMail/Contacts.pm b/PerlMail/Contacts.pm index 0471a7e..4f04cca 100644 --- a/PerlMail/Contacts.pm +++ b/PerlMail/Contacts.pm @@ -54,7 +54,7 @@ my($self,$data,@headers)=@_; return @r; } -sub import +sub in { my($self,$data)=@_; @@ -73,7 +73,7 @@ my($self,$href,@headers)=@_; return join("",map(("[$_]\r\n".(!defined $href->{$_} ? "" : $href->{$_}."\r\n")),@headers))."[$trailer]\r\n"; } -sub export +sub out { my($self,$data)=@_; diff --git a/contacts-n9k2mutt b/contacts-n9k2mutt index ee4d9ad..915ad44 100755 --- a/contacts-n9k2mutt +++ b/contacts-n9k2mutt @@ -50,7 +50,7 @@ while (<>) { "iscompany"=>($record{"Name"} && $record{"Company"} && $record{"Name"} eq $record{"Company"}), })); } @record); - } PerlMail::Contacts->import($_)); + } PerlMail::Contacts->in($_)); my @nicked=map({ my $data=$_; my($name,$mail,$attr,$iscompany)=map(($data->{$_}),qw(name mail attr iscompany));