in reply to Should "use strict" complain if I use a variable that is not declared?
I've never liked mixing my and modifiers before, and reading this thread has taught me why. I like to always give explicit initializations, so I end up writing that like
my %x = (@_ and ref($_[0]) eq 'HASH') ? %{ $_[0] } : ();
- doug
|
---|