Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Re: Re: Re: Apocalypse 3

by japhy (Canon)
on Oct 04, 2001 at 18:26 UTC ( [id://116710]=note: print w/replies, xml ) Need Help??


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

Excellent. I would have only assumed JIT tokenization was the course to be taken, after reading Larry's third Apocolypse. I'm looking forward to seeing some of your applications of these new ideas in your exegesis.

By the way, what is the purpose of a my sub? Is it just a way to have a "lexically scoped" function? That is, is it a way around the current my $func = sub { ... }; $func->(...); approach?

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Apocalypse 3
by TheDamian (Vicar) on Oct 05, 2001 at 12:03 UTC
    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. ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-04-18 12:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found