[Fleet-pm] Last mongers of the year!

James Raspass jraspass at gmail.com
Tue Dec 8 06:04:03 PST 2015


Tomorrow is the last Fleet Perl Mongers of the year, and just before LPW,
hope to see you all at both, that includes you this time Tom ;-)

Here's a fun topic for you everyone, did you know that
autovivification requires a variable?

[jraspass at work ~]$ perl -e '$_=sub{}->(); $_->{key};' -e 'sub{}->()->{key}'
Can't use an undefined value as a HASH reference at -e line 2.

This came from a real bug from moving

my $result   = func();
my $result2 = $result->{key};

to

my $result2 = func()->{key};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/fleet-pm/attachments/20151208/21cf078f/attachment.html>


More information about the Fleet-pm mailing list