- or download this
if ($curline =~ /^Subject: (.*)$/){
$curmsg{Subject} = $1;
- or download this
sub checkdir {
my $directory = shift;
my $is_directory=(( -e $directory ) && ( -d $directory))?0:1;
$return $is_directory;
}
- or download this
sub printhash {
my $hash = shift;
for my $key (keys %{$hash}) {
print "$key : $hash->{$key}\n";
}
}