Just a minor note: When you add your code tags, you don't want to have any extra lines in there. Why? Perlmonks has a feature that automatically adds line numbers for reading code chunks. So when you stated that line 20 has the error, the line marked as line 20 is blank. (Of course, your hashbang line shows up as line 2, so it was easy to see that the line marked 21 is the culprit.)
...roboticus
In reply to OT: Code tags (re: Typecasting Hashes)
by roboticus
in thread Typecasting Hashes
by Xiong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |