Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
It prints out :#!/usr/bin/perl # $node = 65; for($i = 1; $i < $node; $i++ ){ print "NODE SITE_$i\n"; print "\tLABEL $i\n"; print "\tPOSITION CENTER_IMAGE\n\n"; }
I'm trying to get to print POSITION CENTER_IMAGE 0r360,but add 5 to every iteration i.e.NODE SITE_64 LABEL 64 POSITION CENTER_IMAGE
Can someone help and me to get to the right place. ThanksPOSITION CENTER_IMAGE 0r360 POSITION CENTER_IMAGE 5r360 POSITION CENTER_IMAGE 10r360.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Add 5 to a number
by runrig (Abbot) on Jul 01, 2016 at 22:23 UTC | |
|
Re: Add 5 to a number
by BillKSmith (Monsignor) on Jul 02, 2016 at 13:03 UTC | |
|
Re: Add 5 to a number
by Anonymous Monk on Jul 02, 2016 at 23:41 UTC |