in reply to
Geek Speak
How do you get it into Binary in the first place? I'm not very good w/pack, I just know a couple of canned uses. Know of any cool primers out there?
Comment on
RE: Geek Speak
Replies are listed 'Best First'.
RE: RE: Geek Speak
by
Aighearach
(Initiate)
on Apr 26, 2000 at 22:12 UTC
You just unpack the ascii for that.
perl -e'print unpack("B*","Perl Rocks!"),"\n"'
[download]
Will do the trick. See the
Library
, in the the perl funtion manual it lists the other convertions pack and unpack can do. For long messages, hex is often a better choice.
[reply]
[d/l]
In Section
Cool Uses for Perl