--- amv.pl 2007/07/19 20:53:33 5 +++ amv.pl 2007/07/19 20:56:25 6 @@ -29,8 +29,10 @@ # calculate number of characters for offset #my $d = length( sprintf("%x",length($bytes)) ); my $d = 4; + my $prefix = '#.'; while ( $hex =~ s/^((?:\w\w\s){1,16})// ) { - printf "## %0${d}x | %-48s| %s\n", $o, $1, substr( $ascii, 0, 16 ); + printf "$prefix %0${d}x | %-48s| %s\n", $o, $1, substr( $ascii, 0, 16 ); + $prefix = '##'; if ( length($ascii) >= 16 ) { $ascii = substr( $ascii, 16 ); $o += 16;