On Fri, Oct 19, 2012 at 7:37 PM, Bill Moseley <mose...@hank.org> wrote:
> 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};

Is that the literal error-message and code?

% perl -e 'use strict; use warnings; my %foo; my $bar; delete $foo{$bar}'
Use of uninitialized value $bar in delete at -e line 1.
% perl -e 'use strict; use warnings; my %foo; delete $foo{undef()}'
Use of uninitialized value in delete at -e line 1.
% perl -e 'use strict; use warnings; my %foo; sub foo { undef } delete
$foo{foo()}'
Use of uninitialized value in delete at -e line 1.

(perl 5.16.0)

As for stash, it's just a Moose-attribute returning a hashref.
-- 
Lars Balker                                                  Consult::Perl

_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to