Generally I rather use exists to test whether a hash-key exists. It avoids getting "false negatives" on hash-keys which might have undef as a value (which is not the case here, so your code works OK).
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
In reply to Re: Re: Re: Re: Re: Re: ascii manipulation in perl
by CountZero
in thread ascii manipulation in perl
by brkstr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |