in reply to Add 5 to a number

Why not just multiply by 5:
for my $i (0..10) { my $n = $i*5; print "$n\n"; }