in reply to Bin\Hex Parsing in Perl ?

Here is a hex dump program similar to the one posted by tachyon. This one is for relatively small files where you want to examine each byte carefully. I used it for debugging code that generates .wav files.

#!/usr/bin/perl use strict; use warnings; use diagnostics; =head1 NAME dump.pl =head1 SYNOPSYS perl dump.pl chimes.wav > chimes.raw =head1 DESCRIPTION This routine reads a file and prints out a ascii dump. =cut $/ = ""; $_ = <>; my $i=0; for (unpack("C*", $_)) { print $i++."\t".$_."\t".chr($_)."\n"; }
It should work perfectly the first time! - toma