Just a couple of comments :
- Unless you know what you're doing, always add use strict; use warnings; at the top of your code. This will force you to declare variables and will save you a huge amount of problems.
- Though "C style" loops are generally OK, people usually prefer "perlisms", for instance :
for my $i ( 0 .. 255 ) {
# whatever
}
|