Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Keyed matrix

by Marshall (Prior)
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


Comment on Re: Keyed matrix
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991405]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2014-11-24 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (137 votes), past polls