in reply to How the values of hash is refreshed for each request?

What do you expect to see printed? I get:

$VAR1 = { 'to' => 'To: foo@example.com', 'subject' => 'Subject: default subject', 'from' => 'From: bar@example.com' };

which looks sensible to me.


DWIM is Perl's answer to Gödel