Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Perl bytecode

by johnnywang (Priest)
on Dec 06, 2005 at 19:30 UTC ( [id://514612]=note: print w/replies, xml ) Need Help??


in reply to Perl bytecode

Can someone please explain the option usage:
perl -MO=Bytecode -e '...'
I've only used
perl -Mmodule -e ' ....'
"perl --help" doesn't mention this "-MO=". Incidentally, it seems most of the B modules are installed by default, what does "B" stand for?

Replies are listed 'Best First'.
Re^2: Perl bytecode
by chromatic (Archbishop) on Dec 06, 2005 at 19:48 UTC

    -MO loads the O module, of course, which loads the B::* module listed after the equal sign.

    B stands for Backend.

Re^2: Perl bytecode
by Errto (Vicar) on Dec 07, 2005 at 04:27 UTC
    As you know, -M is the command line equivalent of use. The equal sign specifies the arguments to pass to the import function. So perl -MO=Bytecode is the command line equivalent of use O 'Bytecode'; in actual Perl. Likewise perl -Mopen=:utf8,:std is the equivalent of use open qw(:utf8 :std);.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://514612]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-03-19 03:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found