[sf-perl] Use of uninitialized value in delete

Bill Moseley moseley at hank.org
Thu Oct 18 14:07:22 PDT 2012


I'm seeing "Use of uninitialized value in delete" for this line:
 delete $c->stash->{foo};

Perl 5.14.2.
Obviously, that's in Catalyst, and it's running under mod_perl.

I didn't think that delete issued a warning, and I can't seem to make it
happen:

$ perl -Mwarnings -Mstrict -Wle 'use warnings; use strict; my $x = {};
delete $x->{a}'
Am I missing something obvious here?


-- 
Bill Moseley
moseley at hank.org



-- 
Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/sanfrancisco-pm/attachments/20121018/f8b2de11/attachment.html>


More information about the SanFrancisco-pm mailing list