Peter Scott wrote: > > You refer to the whole hash with %. You refer to any member of it with $. > Why? The hash is a container; it has its own behavior. Each item in the > container is a scalar. Scalars begin with $ in Perl. Figure out whether > you're talking about the container or an item in it and you'll know which > sigil to use. Usually you'll use the % once, when declaring the hash: > > my %hash; > > and never again, except in the keys() function. Until you're a bit more > experienced.
Or not. :-) $ perl -le'%hash = qw/a b c d e f/; print for keys hash' e c a John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>