in reply to Re: Help with strict
in thread Help with strict
The point of putting an exists in is that it works independantly of the actual value in the hash. Perhaps in the future, the program would be expanded to add levels of 'mastery' over the bot, which is implemented by putting different values in the %masters datastructure. In that case, exists $masters{$user} would still tell you if $user is a master, even if it's a user at level 0.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
:(){ :|:&};:
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Help with strict
by chromatic (Archbishop) on Oct 28, 2003 at 20:06 UTC |