Class::Phrasebook Class::Phrasebook 8 of 23 : [PREV] [NEXT]

The Module

Now let's see how we get a phrase from the phrasebook:

$msg = new Class::Phrasebook($log, "errors.xml");
$msg->load($language);
  • First, we create the Class::Phrasebook object.
  • We supply to the constructor
    • a Log::LogLite object
    • and a name of our XML phrasebook file.
  • More on the Log::LogLite class later.

© 2003 Barbie barbie@missbarbell.co.uk Home http://birmingham.pm.org/