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

Re: Now, to try again...

Thread Previous | Thread Next
From:
Simon Cozens
Date:
January 3, 2001 13:37
Subject:
Re: Now, to try again...
Message ID:
20010103213247.D26979@deep-dark-truthful-mirror.perlhacker.org
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About