in reply to Re: scope of an autovivified variable?
in thread scope of an autovivified variable?

Thank you.

I don't think I said anything about obscure, I just said I couldn't find anything about it.

That's because I was focused on 'autovivification' and was searching for references to that word, not for use of 'my' in a conditional construct.

  • Comment on Re^2: scope of an autovivified variable?

Replies are listed 'Best First'.
Re^3: scope of an autovivified variable?
by davido (Cardinal) on May 11, 2011 at 20:23 UTC

    I wasn't suggesting that it was easy to search for. In fact, the entire issue ought to be more searchable; it's a question that gets asked here often. I don't know of a perlfaq that covers it, but it's one of those things that comes up often enough it should be part of the FAQ.

    I probably should have been more specific. What I meant was that perlsyn is one of the top ten 'must read' documents for someone using Perl. perlintro, perlsyn, perlop, perlvar, perlsub, perldata, perlre... ok, that's top seven. ;)

    "Why is my( $variable ) = 'something' if $condition; almost certainly an error?" seems like a very good candidate entry for perlfaq7, though. ;)


    Dave