Hello fellow Monks,
How can I tell the interpreter ( or something else ;P ) to give me the bytecode of a script.
Here is what I want ( this is from polish wikipedia )
print "Hello, world!\n";
should give:
OP enter
COP nextstate
OP pushmark
SVOP const PV "Hello, world!\n"
LISTOP print
LISTOP leave
I must say, I want it for no particullar reason, I am just
courisous of various things and I really want to know all
what can be known about Perl ;)
I tried perl --help but I saw no flags allowing me to dump the bytecode to a file or at least print it to STDOUT.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.