in reply to hash question
print OUT ($1) if (!exists($naccess{$1}));
or
print OUT ($1) unless (exists($naccess{$1}));
Although it's not quite proper English, it reads rather nicely if you remove the optional parens:
print OUT ($1) if not exists $naccess{$1};
Update: It's useless to print $naccess{$1} if it doesn't exist! I substituted $naccess{$1} with the key ($1).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hash question
by Anonymous Monk on Nov 21, 2004 at 21:32 UTC | |
by ikegami (Patriarch) on Nov 21, 2004 at 21:35 UTC | |
by Anonymous Monk on Nov 21, 2004 at 21:38 UTC | |
by ikegami (Patriarch) on Nov 21, 2004 at 21:41 UTC |