Well done, useful script that works ;)
...However ;)
Note: That this also removes the need for the chomp statement in readmail, you should really do all relevant processing in one place.if ($curline =~ /^Subject: (.*)$/){ $curmsg{Subject} = $1;
ORsub checkdir { my $directory = shift; my $is_directory=(( -e $directory ) && ( -d $directory))?0:1; $return $is_directory; }
sub printhash { my $hash = shift; for my $key (keys %{$hash}) { print "$key : $hash->{$key}\n"; } }
Updated as per hexcoder's advice below
In reply to Re: My first Perl application! mailsumm.pl
by Utilitarian
in thread My first Perl application! mailsumm.pl
by gizmoguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |