1) ++inelukii for posting homework...after the fact, so to speak. As already mentioned, there are enough sharps in your code to make the eyes bleed, and for the most part are commenting code that is pretty obvious.
foreach (0.. $#(somearray) ) can be a real drag sometimes, and almost always better written as foreach my $element (@array) unless you absolutly need the numeric index. Out of interest, how were you marked for this assignment?
In reply to Re: Style and Coding criticism requested
by submersible_toaster
in thread Style and Coding criticism requested
by inelukii
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |