in reply to Re: Suggestions
in thread Suggestions

umm, I want to lets say take message.txt and convert its contents to ascii code values, only instead of converting for example e's to 101 I want the binary 1100101.

Replies are listed 'Best First'.
Re: Re: Re: Suggestions
by MZSanford (Curate) on Jul 06, 2001 at 20:18 UTC
    for the 8 bit version (e.g. e becomes 01100101 (depending on arch)), the following should work (not tested, but should work) :
    while (<DATA>) { print unpack("b*",$_); } __END__ Just Another Perl Hacker

    may the foo be with you