in reply to Perl bytecode

You'll want to use something in the B module hierarchy.

Re: Advanced Perl Programming, 2nd edition walks through some detailed examples of how to examine the opcode tree (I think with B::Generate, but I don't have the book with me at the moment).

Update:

perl -MO=Debug foo.pl

This may quickly give you what you want.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.