Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Keyed matrix

by Marshall (Abbot)
on Sep 03, 2012 at 12:09 UTC ( #991405=note: print w/replies, xml ) Need Help??


in reply to Keyed matrix

That is a very "unPerl" idea ( that 3 by 7 array). Perhaps your Perl instructor doesn't understand Perl or perhaps you don't understand the assignment. Ask a question about how to accomplish a general task and you will get a lot of help.

Update:

#!/usr/bin/perl -w use strict; #Ok, here is an idea for you... my %scores = ( "Monday" => ["dishes","1"], "Tuesday" => ["vacuum","2"], "Wednesday" => ["garbage","3"], ); print "@{$scores{Wednesday}}\n"; __END__ Prints: garbage 3

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991405]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2017-06-25 17:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (568 votes). Check out past polls.