http://www.perlmonks.org?node_id=1067707


in reply to undefined hash elements

Is there a way to assing a value to the hash elements before they get assigned an elements so they are not 'undef'. I tried an if (!defined) thing but it was thowing errors.