When you bless the new hash into Site::Cfg you give it a reference to the package variable %templates. This is because %templates hasn't yet been declared lexical. To fix it move my %templates... above the sub. use strict would have caught it.
In reply to Re: blessing a hash ref?
by tedrek
in thread blessing a hash ref?
by stonecolddevin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |