Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Help: Binary

Reply
Thread Tools

Help: Binary

 
 
Amy Lee
Guest
Posts: n/a
 
      06-27-2007
Hi,

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

I use Linux system.

Thanks in advance~

Amy Lee
 
Reply With Quote
 
 
 
 
Michele Dondi
Guest
Posts: n/a
 
      06-27-2007
On Wed, 27 Jun 2007 22:39:16 +0800, "Amy Lee"
<(E-Mail Removed)> 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,
 
Reply With Quote
 
 
 
 
Tad McClellan
Guest
Posts: n/a
 
      06-27-2007
Amy Lee <(E-Mail Removed)> 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/"
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
x86 binary runs; x86_64 binary throws segfault Don C Programming 60 03-19-2010 05:58 AM
(8-bit binary to two digit bcd) or (8-bit binary to two digit seven segment) Fangs VHDL 3 10-26-2008 06:41 AM
writing binary file (ios::binary) Ron Eggler C++ 9 04-28-2008 08:20 AM
A 64-bit binary returning a value to a 32-bit binary? spammenotplui31@yahoo.ca C Programming 12 04-08-2007 07:02 AM
Re: ostreams, ios::binary, endian, mixed binary-ascii Marc Schellens C++ 8 07-15-2003 12:27 PM



Advertisments