Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Arrays and Loops

by screamingeagle (Curate)
on Feb 15, 2002 at 17:33 UTC ( #145731=note: print w/replies, xml ) Need Help??


in reply to Arrays and Loops

how about :
use strict; my @name = ("tim", "tom", "jon"); my @time = ("5:00", "6:00", "7:00") ; my @duty = ("floors", "urinals", "windows"); for my $i (0..$#name) { print "$name[$i] is on $duty[$i] duty at $time[$i]\n" }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://145731]
help
Chatterbox?
[karlgoethebier]: choroba: This: https://www. paludan-cafe.dk ???
[karlgoethebier]: I get "You are using an outdated version of Internet Explorer. For a faster, safer browsing experienceUpgrade" Ouch! i got safari...
[karlgoethebier]: ...well, outdated

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2017-11-19 12:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (280 votes). Check out past polls.

    Notices?