http://www.perlmonks.org?node_id=991405


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