You don'tseem to get me straight...
> "Leonard Challis" <> wrote:
>> What I am saying is this: Is there any way of opening a file, and instead
>> of getting the text in side it, you actually see the 1s and0s or the
>> hexnumbers?
> The text is identical to the 1 and 0s. I highly doubt that you are able
> to stare at a CPU and "see" the insides of the Perl and perl programs. So
> what you see is not what is inside perl, but rather what you told Perl to
> print to your monitor. If you want to see 1s and 0s, then tell Perl to
> print them as 1s and 0s.
I don't want to look at perl's code, I just want to see the file I open. Say
for instance I have an image and I open it in a HEX editor, I see the binary
or hex as well as the text for that file. I was wondering if there was any
way of opening the file and inputting it in this format instead of doing a
lot of converting. I know you can convert stuff, google has plenty of stuff.
>> This would then allow me to use the bitwise operators etc to manipulate
>> it.
>
> Why don't you read the docs on those bitwise operators?
I know, i was just stating thats what I was planning on doing so you had
more information. I have been reading up on them.
>
>> If there isn't, what would anyone suggest trying? For instance, could i
>> convert the ascii data i receive in to hex or binary. I'm guessing it
>> isn't just a simple case of converting it back right?
>>
>> Thanks for any tips or hints, even a book to read 
>
> I think you've already been given those tips and hints. Please, go
> followup on them. After you read all of perlop and all of perlfunc, if
> you don't understand, come back and ask specific questions about the
> operators and functions you don't understand.
I have been toldabout conversion to hex/binary and about bitwise operators..
NOT about opening a file and inputting in this format straight away. If you
don'thave an answer I don't mind, don't moan.
Lenny Challis