in reply to My first Perl application! mailsumm.pl

Hi,

Well done, useful script that works ;)

...However ;)

Believe me when I say my first Perl program had all these issues and more, this is a very good first program.

Updated as per hexcoder's advice below

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Replies are listed 'Best First'.
Re^2: My first Perl application! mailsumm.pl
by hexcoder (Curate) on Aug 28, 2010 at 22:02 UTC
    The keys function was missing in your example in line 3...
    sub printhash { my $hash = shift; for my $key (keys %{$hash}) { print "$key : $hash->{$key}\n"; } }