in reply to hash question
"print OUT ($naccess{$1}) if (exists($naccess{$1}));"
To make your code more robust, you better first check whether $1 is actually set, before you check whether it exists in the hash.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hash question
by Anonymous Monk on Nov 21, 2004 at 21:50 UTC | |
by Anonymous Monk on Nov 21, 2004 at 21:54 UTC | |
by ikegami (Patriarch) on Nov 22, 2004 at 03:39 UTC | |
by ysth (Canon) on Nov 21, 2004 at 22:30 UTC |