in reply to usage of "my" keyword

You don't even need to declare $i at all:
#!/usr/bin/perl use strict; use warnings; for (8 .. 27) { print "present value of the number is: $_\n"; }