in reply to chomp problem

Except that I used type rather than cat I get expected output with ActiveState install as detailed below:

C:\...\PerlMonks>perl -v This is perl, v5.8.7 built for MSWin32-x86-multi-thread (with 7 registered patches, see perl -V for more detail) Copyright 1987-2005, Larry Wall Binary build 813 [148120] provided by ActiveState http://www.ActiveSta +te.com ActiveState is a division of Sophos. Built Jun 6 2005 13:36:37 Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using `man perl' or `perldoc perl'. If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge. C:\...\PerlMonks>type noname.txt | perl noname.pl FORM is the symbol IDTI is the symbol ONNN is the symbol CHRT is the symbol

Perl is Huffman encoded by design.