News for hackers. Stuff that matters.
Re:In Praise of Perl 5 by seeken on Thursday February 27, 2014 @06:38PM (#7316130)
That will not always pass.

if (exists $foo->{bar}){ .. will not run .. }

if ($foo->{bar}) {...}

if (exists $foo->{bar}){ .. will run .. }

Re:In Praise of Perl 5 by pflanze on Thursday February 27, 2014 @07:01PM (#7316292)
That doesn't do any autovivification. You meant (note the referencing down a deeper level than the exists test):

if (exists $foo->{bar}){ .. will not run .. } if ($foo->{bar}->{baz}) {...} if (exists $foo->{bar}){ .. will run .. }

Re:In Praise of Perl 5 by seeken on Thursday February 27, 2014 @08:32PM (#7316673)
Can't believe I've had that wrong for so long. Must have misinterpreted it right when I learned perl and have always been careful about it.
Re:In Praise of Perl 5 by eieio on Thursday February 27, 2014 @06:43PM (#7316167)
I see, thank you.

I am certainly a perl novice.