Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: (Revelation) Re: sub and anonymous sub

by theorbtwo (Prior)
on Jun 21, 2002 at 03:25 UTC ( #176218=note: print w/ replies, xml ) Need Help??


in reply to (Revelation) Re: sub and anonymous sub
in thread sub and anonymous sub

Why thank you; that monk using good pratice was me. The my lexicaly scopes the variable to the end of the my statement to the end of the smallest enclosing lexical block, where a lexical block is a pair of curlies, a file, or an eval string (and probably some other places, anybody?). By adding the extra {}s, you make a scope exactly as large as you need.


We are using here a powerful strategy of synthesis: wishful thinking. -- The Wizard Book


Comment on Re: (Revelation) Re: sub and anonymous sub
Download Code
Re: Re: (Revelation) Re: sub and anonymous sub
by BrowserUk (Pope) on Jun 21, 2002 at 22:43 UTC

    Thankyou kind monk theorbtwo.

    ...but look what you started me on:)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2015-07-02 03:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (27 votes), past polls