Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 wandering the Monastery: (6)
As of 2014-09-18 07:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (109 votes), past polls