Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

ByteLoader is not enough ?

by lindex (Friar)
on May 07, 2001 at 14:42 UTC ( #78467=perlquestion: print w/ replies, xml ) Need Help??
lindex has asked for the wisdom of the Perl Monks concerning the following question:

How do I run perl byte code from a scalar inline with my normal perl program?

I have looked into ByteLoader and it doesn't really provide any methods, all it wants todo is read bytecode to the end of my script file and add that inline.

... some perl code, it may even use stuff defined in byte code ... use ByteLoader; <byte code>

B is supposed to export a "byteload_fh" and a "byteload_string" method, but this seems to be untrue?

Any help would be great




lindex

2001-05-07 Edit by Corion : Fixed the title

Comment on ByteLoader is not enough ?
Download Code
Re: ByteLoader is not enought?
by NodeReaper (Curate) on May 07, 2001 at 14:45 UTC

    Reason: (dep) lets use the cb and /msg next time, mmmmkay?

    For more information on this node visit: this

Re (tilly) 1: ByteLoader is not enough ?
by tilly (Archbishop) on May 08, 2001 at 17:40 UTC
    I have not tried using B. But perldoc -m B shows that byteload_fh and byteload_string are in @EXPORT_OK. So you would need to do something like
    use B qw(byteload_string);
    to get that.

    UPDATE
    I am using Perl 5.005_03. But I doubt that this would have been changed in 5.6.x. In any case you can try that perldoc command and read the source-code for your version.

      What version of perl are you using?


      lindex

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://78467]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-09-23 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls