in reply to The following returns no value for $lang
Your method for pulling the data from a hash reference should be fine, but you might also consider writing it this way (which in my opinion is a bit more clear)while (<LANGUAGES>) { chomp; my ($key, $value) = split /,\s*/; $lang_dev{$key} = $value; }
Editor's note: This post originally included tekniko's question, properly formated. Since I added the formatting tags to the question, I removed the duplication from this post.
Originally posted as a Categorized Answer.
|
|---|