Home > Archive > PERL Miscellaneous > June 2007 > Help: Binary
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Amy Lee 2007-06-27, 7:05 pm |
| Hi,
Is there any programs that can convert perl codes to binary mode?
I use Linux system.
Thanks in advance~
Amy Lee
| |
| Michele Dondi 2007-06-27, 7:05 pm |
| On Wed, 27 Jun 2007 22:39:16 +0800, "Amy Lee"
<openlinuxsource@gmail.com> 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{po
p^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,
| |
| Tad McClellan 2007-06-27, 7:05 pm |
| Amy Lee <openlinuxsource@gmail.com> 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/"
| |
|
|
| attn.steven.kuo@gmail.com 2007-06-28, 4:06 am |
| On Jun 27, 7:39 am, "Amy Lee" <openlinuxsou...@gmail.com> wrote:
> Hi,
>
> Is there any programs that can convert perl codes to binary mode?
>
> I use Linux system.
>
> Thanks in advance~
Actually, I don't clearly understand this question either.
Other have pointed out 'binmode'. I, on the other hand,
interpreted your question as being related to this FAQ:
$ perldoc -q "byte code"
--
Hope this helps,
Steven
|
|
|
|
|