'p' => \$printfilenames,
) or pod2usage();
$help and pod2usage(-exitstatus=>0, -verbose=>1);
-scalar(@ARGV) == 0 or pod2usage();
+@ARGV == 0 or pod2usage();
our $run = !$norun;
die("Failed readdir($dir)");
}
- if (scalar(@result) == 0) {
+ if (@result == 0) {
exit(0);
}
sub filter_mail {
my @msglist = @_;
- my $msgcount = scalar(@msglist);
+ my $msgcount = @msglist;
my $msgcountlen = length($msgcount);
my @baton;
my $msg;
if (spam_check($msg, @baton)) {
$mhfolder = 'SPAM';
- $spam = scalar(@SPAM)+ 1;
+ $spam = @SPAM + 1;
} else {
$mhfolder = find_mh_folder($msg);
$saved++;