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
 $ perl -Mwarnings -Mstrict -Wle 'use warnings; use strict; my $x = {};
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
Searchable archive:
Dev site:

Reply via email to