develooper Front page | perl.perl6.internals.api.parser | Postings from January 2001

Re: Now, to try again...

Thread Previous | Thread Next
Simon Cozens
January 3, 2001 13:37
Re: Now, to try again...
Message ID:
On Tue, Jan 02, 2001 at 06:22:31PM -0800, Steve Fink wrote:
> Just in looking at your example, it seems like some complex replacements
> would be a bit of a pain to generate. It would be nice to have a
> specification for those opcode replacements. Like, say, perl code. How
> hard would it be to do:

Trivial. Use B::svref_2object(sub { your code here }) to create an op tree in
a variable. Splice it in as before.

"There is no statute of limitations on stupidity."
-- Randomly produced by a computer program called Markov3.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About