The fence picket error is avoided by avoiding the C for loop. Use a Perl for loop instead and a range:
for my $number (1 .. $mal) { ... }
which is clearer, more concise and correct.
In reply to Re^2: serial number generator
by GrandFather
in thread serial number generator
by royserna03
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |