perl - Why do I get "Pseudo-hashes are deprecated"? -
i have code
if (defined($xml->{account}->{p}) == '2') { ... } which gives me warning
pseudo-hashes deprecated @ a.pl line 48. the problem in cases $xml->{account}->{p} doesn't exist, why added defined function.
$xml object, if makes difference?
how can fixed, perl doesn't complain?
either $xml or $xml->{account} array, not hash (you can use ref check this, see perldoc -f ref). perl had now-deprecated feature called "pseudo-hashes" allowed special arrays accessed via hash syntax. if care history, can google around or @ older-edition camel book.
Comments
Post a Comment