tool that does inlining of all used packages ?

Discussion in 'Perl Misc' started by Yakov, Jun 10, 2007.

  1. Yakov

    Yakov Guest

    Which tool does inlining of all used packages ?

    I saw some such tool in use in spamd installation.
    The resulting perl code has no external dependencies.

    Is this preprocessor generic or spamd-specific ?
    Is it on cpan ? What's its name ?

    The preprocessor used in spamd installation inlines all packages
    and rewrites the code so that the resulting perl code only
    remotely resembles the original.

    Thanks
    Yakov
     
    Yakov, Jun 10, 2007
    #1
    1. Advertising

  2. Yakov

    Guest

    You could use

    perl -d:Trace program

    and perhaps save it in a file ?

    Asim Suter


    On Jun 10, 2:53 pm, Yakov <> wrote:
    > Which tool does inlining of all used packages ?
    >
    > I saw some such tool in use in spamd installation.
    > The resulting perl code has no external dependencies.
    >
    > Is this preprocessor generic or spamd-specific ?
    > Is it on cpan ? What's its name ?
    >
    > The preprocessor used in spamd installation inlines all packages
    > and rewrites the code so that the resulting perl code only
    > remotely resembles the original.
    >
    > Thanks
    > Yakov
     
    , Jun 17, 2007
    #2
    1. Advertising

  3. On Sun, 10 Jun 2007 21:53:54 -0000, Yakov <> wrote:

    >Which tool does inlining of all used packages ?


    PAR should do that.


    Michele
    --
    {$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
    (($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
    ..'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
    256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
     
    Michele Dondi, Jun 17, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul  Smith
    Replies:
    0
    Views:
    748
    Paul Smith
    Nov 18, 2003
  2. Alex
    Replies:
    6
    Views:
    431
  3. Generic Usenet Account

    How does inlining work?

    Generic Usenet Account, Sep 14, 2005, in forum: C++
    Replies:
    15
    Views:
    684
    persenaama
    Sep 18, 2005
  4. Yakov
    Replies:
    8
    Views:
    333
    Mark McIntyre
    Jun 26, 2007
  5. Jack
    Replies:
    47
    Views:
    1,379
    Arne Vajhøj
    Feb 19, 2008
Loading...

Share This Page