Hi,
I'm trying to get my ascii, hex, and decimal
values straight.
I wanted to print out all values from 0 - 256.

It works , but I'm getting unexplained (as of yet)
"corruption" in the alignment of the printout
in the ranges decimal 5-16, and 126-180.

I can still make sense of the output, but it seems
some newlines are thrown in, and odd spacings occur.
Anyone know what is happening?

###################################
#!/usr/bin/perl
use strict; 
use warnings; 

for (my $i=0; $i<256; $i++){
print "$i\t" ; 
print chr($i);
my $h = sprintf "%lx","$i";
print "\t$h\t\n";
}
exit;
###################################

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to