develooper Front page | perl.perl5.porters | Postings from January 2003

interesting? but ugly! use of

Jim Cromie
January 25, 2003 16:32
interesting? but ugly! use of
Message ID:

in attached progs, Im altering the optree that calls certain functions,
and replaces the subroutine name with one thats munged to make it unique.

When the program is run, the munged subs dont exist, and are handled by 
which then can create a sub thats customized for each unique invocation. works,   a3 does not; it exposes problems either in my code or in 
the concept,
Id like to understand which.

Notes:  (diffs between and a3 )

perl -MO=Concise a3     shows much less data than with,
I think this is due the do {} block in, vs a subroutine call in 
a3.  Am I correct ?

I recognize only 1 opcode chain ( with a few variations ), but am unable 
(as yet) to ascertain
what other op-chains might invoke a sub.  I could use some Hints as to 
how to create such
opcode patterns, and out to see them with B::Concise.

Code is rough (butt-ugly?), but after reading Nicholas Clark's posting, 
I figured its somewhat relevant. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About