Bruno Cornec > ProjectBuilder-0.11.3 > ProjectBuilder::Display

Download:
ProjectBuilder-0.11.3.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: ProjectBuilder-0.12.2

NAME ^

ProjectBuilder::Display, part of the project-builder.org - module dealing with display functions suitable for perl project development

DESCRIPTION ^

This modules provides display functions suitable for perl project development

SYNOPSIS ^

  use ProjectBuilder::Display;

  #
  # Manages prints of the program
  #
  pb_display_init("text","fr_FR:UTF-8");
  pb_display("Message to print\n");

USAGE ^

pb_display_init

This function initializes the environment used by the pb_display function.

The first parameter is the type of display which will be used. Could be "text", "web", "newt",... The second parameter is the loacle to be used.

The call to pb_display_init is typically done after getting a parameter on the CLI indicating the locale used or the type of interface to report messages to.

pb_display

This function prints the messages passed as parameter using the configuration set up with the pb_display_init function.

Here is a usage example:

  pb_display_init("text","fr_FR.UTF-8");
  pb_display("Hello World\n");

  will print:
  
  Bonjour Monde
syntax highlighting: