[sf-perl] Use of uninitialized value in delete

Fred Moyer fred at redhotpenguin.com
Fri Oct 19 12:20:46 PDT 2012


Can you try this in a Catalyst context as opposed to just the command
line Perl example?

On Thu, Oct 18, 2012 at 2:07 PM, Bill Moseley <moseley at hank.org> wrote:
>
> 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
>
> _______________________________________________
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
>


More information about the SanFrancisco-pm mailing list