Perhaps it might work better in windows if you break it down into simpler elements, for instance
sub parse_mail (
my @mail;
@mail = @_;
foreach my $mail ( @mail ) {
open (MAIL,$mail) || die "Cannot open $mail, $!";
push @mailf, <MAIL>;
chomp (@mailf);
close (MAIL) || die "Cannot close $mail, $!";
}
return @mailf;
}
I realize that you have set up a shortcut in the code, but I have found perl works better in Windows if I avoid shortcuts in the code, I don't know why.
MadraghRua
yet another biologist hacking perl....