Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
help needed on encoding a text fileby bfdi533 (Friar) |
on Apr 02, 2003 at 16:33 UTC ( [id://247520]=perlquestion: print w/replies, xml ) | Need Help?? |
bfdi533 has asked for the wisdom of the Perl Monks concerning the following question:
I have a bit of code that I am working on to encode a text file by replacing each word with a binary code representing it (after building an index of all words in the file) in an effort to save storage (and, of course, to display it later).
I am trying to get the binary code to the file and have tried many different things including printf and pack and have not been able to produce the results that I am after. Here is my current encode.pl code:
I would be happy for any all all input on this problem. Ed
Back to
Seekers of Perl Wisdom
|
|