Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Ways to store messages...by CombatSquirrel (Hermit) |
on Dec 12, 2003 at 10:08 UTC ( [id://314267]=note: print w/replies, xml ) | Need Help?? |
If you want to store messages globally, as in your code, think about using a hash instead of an array. $msg{'cracker'} is more human-readable than $msg[2], especially when your code is long and you don't want to look up the exact ID of a message.
Cheers, CombatSquirrel. Entropy is the tendency of everything going to hell.
In Section
Seekers of Perl Wisdom
|
|