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"; }
[download]
Comment on
Re: Add 5 to a number
Download
Code
In Section
Seekers of Perl Wisdom