CPU: Perl, Fall 2005
Perl, Week 4: More Arrays, Context, Subroutines, Lexical Variables
#49
Quiz
How do you get the number of keys in a hash?
Scalar context, of course!
my $count = keys %hash;
« Previous
|
Index
|
Next »
Copyright © 2005 Ian Langworth