in reply to Re: undefined value as an ARRAY reference sometimes ok
in thread undefined value as an ARRAY reference sometimes ok

Maybe I missed it, but the refs you gave didn't explain why this didn't autovivify:
my $item = get_no_list()->[0]; #no way

Replies are listed 'Best First'.
Re^3: undefined value as an ARRAY reference sometimes ok
by chilledham (Friar) on Dec 13, 2011 at 23:57 UTC

    Sorry for the lack of clarity in my first response. It's the attempt to dereference $list that causes the autovivification. In your last example, you are attempting to dereference your function call, not $list.