This way you could build goodies into the function that allows clever stuff to happen - such as checking which language to return the message in - not to mention croaking if you ask for a message that does not exist.use MyMsg; # exports get_message. my $msg = get_message( 'cracker' );
It would also make sense to store your messages centrally in an XML or YAML file as suggested above.
--tidiness is the memory loss of environmental mnemonics
In reply to Re: Ways to store messages...
by EvdB
in thread Ways to store messages...
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |