rfb has asked for the wisdom of the Perl Monks concerning the following question:
name -- name name -- name
hmm. -rfbmy %field_def = ( name => "name", country => "country", province => "province", description => "description", url => "resort_url", tubs => "tubs", pool => "pool", parking => "parking" ); for (my ($key, $val) = each (%field_def)) { print "$key -- $val\n"; }
Originally posted as a Categorized Question.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Answer: for (($key, $val) = each (%hash)) { } question
by rfb (Sexton) on Jan 12, 2001 at 23:22 UTC | |
|
Answer: for (($key, $val) = each (%hash)) { } question
by japhy (Canon) on Jan 12, 2001 at 23:16 UTC | |
|
Answer: for (($key, $val) = each (%hash)) { } question
by Coyote (Deacon) on Jan 12, 2001 at 23:20 UTC |