in reply to Re: Re: Re: Re: Re: Apocalypse 3
in thread Apocalypse 3

By the way, what is the purpose of a my sub? Is it just a way to have a "lexically scoped" function?

Exactly.

Although that "just" is a little unfair. Lexically scoped subs are a very significant addition to the language.

For example, they allow user-defined operators to take effect only in a limited -- and compile-time determinable -- scope, thereby preventing widespread chaos and madness when some module you import decides to define a high-precedence ;# operator and accidentally eats all your close-commented end-of-statements. ;-)