[Catalyst] Use of uninitialized value in delete

Bill Moseley moseley at hank.org
Fri Oct 19 17:37:11 GMT 2012


Sorry for the duplicate if you are on the SF Perl list.


In server logs I'm seeing this warnings:

Use of uninitialized value in delete


with a line number pointing to this line:

delete $c->stash->{foo};


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 =3D {};
delete $x->{a}'

Is there something special about $c->stash that might trigger this in Perl?
Anyone else spot these in the logs.


This is on Perl 5.14.2 / Catalyst 5.90016 / mod_perl 2.0.7

-- =

Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20121019/ef9c6=
9c1/attachment.htm


More information about the Catalyst mailing list