summaryrefslogtreecommitdiff
path: root/fml
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-07-02 12:54:44 +0000
committerfukachan <fukachan>2002-07-02 12:54:44 +0000
commit8bf1f9ca119975bf061661fcc2d67dd0744b08e6 (patch)
tree7387a3c7ef02622f7bb525ed07a3d87075667e45 /fml
parente91cef35933c68f8121b2d645b58baddd634e7de (diff)
downloadfml8-8bf1f9ca119975bf061661fcc2d67dd0744b08e6.tar.gz
fml8-8bf1f9ca119975bf061661fcc2d67dd0744b08e6.tar.bz2
fml8-8bf1f9ca119975bf061661fcc2d67dd0744b08e6.zip
fix comments
FNF-ify
Diffstat (limited to 'fml')
-rw-r--r--fml/lib/Mail/Message/MH.pm13
1 files changed, 7 insertions, 6 deletions
diff --git a/fml/lib/Mail/Message/MH.pm b/fml/lib/Mail/Message/MH.pm
index b56aeb28..8d784d37 100644
--- a/fml/lib/Mail/Message/MH.pm
+++ b/fml/lib/Mail/Message/MH.pm
@@ -2,14 +2,14 @@
#
# Copyright (C) 2001,2002 Ken'ichi Fukamachi
#
-# $FML: MH.pm,v 1.4 2002/04/08 12:44:29 fukachan Exp $
+# $FML: MH.pm,v 1.5 2002/05/19 07:47:05 fukachan Exp $
#
package Mail::Message::MH;
=head1 NAME
-Mail::Message::MH - utilities for MH style format
+Mail::Message::MH - utilities to handle MH style format
=head1 SYNOPSIS
@@ -22,7 +22,7 @@ Mail::Message::MH - utilities for MH style format
=head2 expand($str, [$min, $max])
-return HASH ARRAY of numbers specified by the following format:
+return ARRAY_REF of numbers specified by the following format:
100
100-110
@@ -82,20 +82,21 @@ sub expand
return _expand_range($max - $1 + 1, $max);
}
- undef;
+ return [];
}
# Descriptions: make an array from $fist to $last number
# Arguments: NUM($first_number) NUM($last_number)
# Side Effects: none
-# Return Value: ARRAY_REF as [ $first .. $last ]
+# Return Value: ARRAY_REF (as [ $first .. $last ])
sub _expand_range
{
my ($first, $last) = @_;
+ my (@fn) = ();
- my (@fn);
for ($first .. $last) { push(@fn, $_);}
+
return \@fn;
}