LPM: Strict variable checking in classes?

Matt Cashner sungo at qx.net
Thu Mar 29 09:03:25 CST 2001


On Thu, 29 Mar 2001, Steve Lane wrote:

>       if (exists $self->{$method}) {

exists will always return true on a hash thanks to
autovivification. defined is a much better option. 

m.




More information about the Lexington-pm mailing list