Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Ways to store messages...

by EvdB (Deacon)
on Dec 12, 2003 at 11:38 UTC ( [id://314277]=note: print w/replies, xml ) Need Help??


in reply to Ways to store messages...

Alternatively you could write a function that returns the message:
use MyMsg; # exports get_message. my $msg = get_message( 'cracker' );
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.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://314277]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-25 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found