Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / examples / hello-perl / hello-2.pl.in
blobafb9b6a5c671aaf78a993ee2bdcf6952f92580b7
1 #!@PERL@
2 # Example for use of GNU gettext.
3 # This file is in the public domain.
5 # Source code of the Perl program, using the Locale::TextDomain API.
7 use Locale::TextDomain ("hello-perl" => "@localedir@");
8 use POSIX qw(getpid);
10 binmode STDOUT, ':raw'; # Needed to make it work in UTF-8 locales in Perl-5.8.
12 print __"Hello, world!";
13 print "\n";
14 print __x ("This program is running as process number {pid}.", pid => getpid());
15 print "\n";