Manual Pages for UNIX Darwin command on man B::Bytecode
MyWebUniversity

Manual Pages for UNIX Darwin command on man B::Bytecode

B::Bytecode(3pm) Perl Programmers Reference Guide B::Bytecode(3pm)

NAME

B::Bytecode - Perl compiler's bytecode backend

SYNOPSIS

ppeerrll -MMOO==BByytteeccooddee[,,-HH][,,-ooscript.plc] script.pl

DESCRIPTION

Compiles a Perl script into a bytecode format that could be loaded later by the ByteLoader module and executed as a regular Perl script. EEXXAAMMPPLLEE

$ perl -MO=Bytecode,-H,-ohi -e 'print "hi!\n"'

$ perl hi

hi! OOPPTTIIOONNSS

-bb Save all the BEGIN blocks. Normally only BEGIN blocks that

"require" other files (ex. "use Foo;") are saved.

-HH prepend a "use ByteLoader VERSION;" line to the produced bytecode.

-kk keep the syntax tree - it is stripped by default.

-oooutfile

put the bytecode in instead of dumping it to STDOUT.

-ss scan the script for "# line .." directives and for

expressions. When gotos are found keep the syntax tree.

KNOWN BUGS

+o "BEGIN { goto A: while 1; A: }" won't even compile. +o "?...?" and "reset" do not work as expected. +o variables in "(?{ ... })" constructs are not properly scoped. +o scripts that use source filters will fail miserably. NNOOTTIICCEE There are also undocumented bugs and options. THIS CODE IS HIGHLY EXPERIMENTAL. USE AT YOUR OWN RISK. AUTHORS Originally written by Malcolm Beattie and modified by Benjamin Stuhl . Rewritten by Enache Adrian , 2003 a.d.

perl v5.8.8 2001-09-21 B::Bytecode(3pm)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™