Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Acme::Perl::VM 0.006

    Download button

    No screenshots available
    Downloads: 269  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Goro Fuji | More programs
    Perl Artistic License / FREE
    March 5th, 2010, 23:55 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Acme::Perl::VM description

    A Perl5 Virtual Machine in Pure Perl (APVM)

    Acme::Perl::VM is an implementation of Perl5 virtual machine in pure Perl.

    Perl provides a feature to access compiled syntax trees (opcodes) by B module. B::* modules walk into opcodes and do various things; B::Deparse retrieves Perl source code from subroutine references, B::Concise reports formatted syntax trees, and so on.

    Acme::Perl::VM is a Perl module that also walks into the opcodes, and executes them with its own ppcodes.

    You can run any Perl code:

     use Acme::Perl::VM;

     run_block {
     print "Hello, APVM world!\n";
     };


    This code says Hello, APVM world to stdout as you expect.

    Here is a more interesting example:

     BEGIN{ $ENV{APVM} = 'trace' }
     use Acme::Perl::VM;

     run_block {
     print "Hello, APVM world!\n";
     };


    And you'll get a list of opcodes as the code runs:

     .entersub(&__ANON__) VOID
     .nextstate(main -:4) VOID
     .pushmark SCALAR
     .const("Hello, APVM world!\n") SCALAR
     .print SCALAR KIDS
     Hello, APVM world!
     .leavesub KIDS


    The first entersub is the start of the block. The next nextstate indicates the statement that says hello. pushmark, const, and print are opcodes which runs on the statement. The last leavesub is the end of the block. This is a future of the module.

    SYNOPSIS

     use Acme::Perl::VM;

     run_block{
     print "Hello, APVM world!\n",
     };



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    virtual machine | Perl module | Perl VM | Perl | virtual | machine

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM