GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  LOCALE::MSGCAT (3)

.ds Aq ’

NAME

Locale::Msgcat - Perl extension for blah blah blah

CONTENTS

SYNOPSIS



  use Locale::Msgcat;
 
  $cat = new Locale::Msgcat;

  $rc  = $cat->catopen(name, oflag);
  $msg = $cat->catgets(set_number, message_number, string);
  $rc  = $cat->catclose();



DESCRIPTION

The <B>Locale::MsgcatB> module allows access to the message catalog functions which are available on some systems. A new Locale::Msgcat object must first be created for each catalog which has to be open at a given time.

The <B>catopenB> operation opens the catalog whose name is given as argument. The oflag can be either 0 or NL_CAT_LOCALE (usually 1) which is the recommended value.

The <B>catgetsB> message retrieves message_number for the set_number message set, and if not found returns string.

The <B>catcloseB> function should be used when access to a catalog is not needed anymore.

EXAMPLES



  use Locale::Msgcat;

  $cat = new Locale::Msgcat;
  unless ($cat->catopen("whois.cat", 1)) {
      print STDERR "Cant open whois catalog.\n";
      exit(1);
  }
  printf "First message, first set : %s\n", $cat->catgets(1, 1, "not found");
  unless ($cat->catclose()) {
      print STDERR "Cant close whois catalog.\n";
      exit(1);
  }



The above example would print the first message from the first message set found in the whois catalog, or if not found it would print not found.

AUTHOR

Christophe Wolfhugel, wolf@pasteur.fr

SEE ALSO

catopen(3), catclose(3), catgets(3), perl(1).
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MSGCAT (3) 1999-11-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.