in reply to Ways to store messages...
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
|
---|