@pics = (1..100); for($x=0;$x<@pics;$x++){ print "displaying pic number $pics[$x] \n"; if (($x+1) % 5 == 0){ # because zero mod 5 is zero too print "...and starting a new row.\n"; } }
($_='jjjuuusssttt annootthheer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;
In reply to Re: simple column/row counter
by Cody Pendant
in thread simple column/row counter
by monkscafe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |