#!/usr/bin/perl use strict; my @name = ("tim", "tom", "jon"); my @time = ("5:00", "6:00", "7:00") ; my @duty = ("floors", "urinals", "windows"); for (my $x = 0; $x < scalar(@name); $x++) { print @name[$x] . " is on " . @duty[$x] . " duty at " . @time[$x] +. "\n"; }
()-() \"/ `
In reply to Re: Arrays and Loops
by ignatz
in thread Arrays and Loops
by nlafferty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |