Help: Binary

Discussion in 'Perl Misc' started by Amy Lee, Jun 27, 2007.

  1. Amy Lee

    Amy Lee Guest

    Hi,

    Is there any programs that can convert perl codes to binary mode?

    I use Linux system.

    Thanks in advance~

    Amy Lee
     
    Amy Lee, Jun 27, 2007
    #1
    1. Advertising

  2. On Wed, 27 Jun 2007 22:39:16 +0800, "Amy Lee"
    <> wrote:

    >Is there any programs that can convert perl codes to binary mode?


    Probably yes, granted that you specify (i) what is "perl codes" and
    (ii) what to "convert to binary mode" may possibly mean. The closest
    thing I can think of that could make sense out of your question is

    perldoc -f binmode

    But then you may also be interested in the ':raw' open() layer.

    Or perhaps you want a binary executable out of a Perl source? Then see
    PAR. In any case you're forcing use to use our esp fu and give answer
    to two different questions, none of which may the one you actually
    have in your mind, only because you didn't mind taking care of
    specifying the latter clearly enough!

    >I use Linux system.


    Irrelevant except possibly for the fact that binmode() shouldn't be
    needed there. But using it shouldn't do harm.

    >Thanks in advance~


    Than YOU in advance for asking your question more clearly next time,
    which you will do, won't you?


    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 27, 2007
    #2
    1. Advertising

  3. Amy Lee <> wrote:

    > Is there any programs that can convert perl codes to binary mode?



    Yes. (I think)


    > I use Linux system.



    Me too.


    > Thanks in advance~



    You're welcome.


    --
    Tad McClellan
    email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
     
    Tad McClellan, Jun 27, 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. Fangs
    Replies:
    3
    Views:
    9,801
    darshana
    Oct 26, 2008
  2. Marc Schellens
    Replies:
    8
    Views:
    3,023
    John Harrison
    Jul 15, 2003
  3. Replies:
    12
    Views:
    582
    Richard Heathfield
    Apr 8, 2007
  4. Ron Eggler

    writing binary file (ios::binary)

    Ron Eggler, Apr 25, 2008, in forum: C++
    Replies:
    9
    Views:
    936
    James Kanze
    Apr 28, 2008
  5. Don
    Replies:
    60
    Views:
    1,364
    Phred Phungus
    Mar 19, 2010
Loading...

Share This Page