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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: (Revelation) Re: sub and anonymous sub
by BrowserUk (Patriarch) on Jun 21, 2002 at 22:43 UTC |