Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: scope of an autovivified variable?

by rmcgowan (Sexton)
on May 11, 2011 at 20:06 UTC ( [id://904237]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://904237]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-16 13:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found