No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / examples / hello-perl / hello-2.pl.in
blob76573b2a97de044c26a17e4a35f0f51b09255099
1 #!@PERL@
2 # Example for use of GNU gettext.
3 # Copyright (C) 2003 Free Software Foundation, Inc.
4 # This file is in the public domain.
6 # Source code of the Perl program, using the Locale::TextDomain API.
8 use Locale::TextDomain ("hello-perl" => "@localedir@");
9 use POSIX qw(getpid);
11 binmode STDOUT, ':raw'; # Needed to make it work in UTF-8 locales in Perl-5.8.
13 print __"Hello, world!";
14 print "\n";
15 print __x ("This program is running as process number {pid}.", pid => getpid());
16 print "\n";