File: demo_locale.pl

package info (click to toggle)
libtext-reform-perl 1.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 188 kB
  • ctags: 31
  • sloc: perl: 1,251; makefile: 39
file content (36 lines) | stat: -rw-r--r-- 452 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
use POSIX qw(locale_h);
setlocale(LC_ALL, "de");

# Get a reference to a hash of locale-dependent info
$locale_values = localeconv();

# Output sorted list of the values
for (sort keys %$locale_values) {
printf "%-20s = %s\n", $_, $locale_values->{$_}
}





__END__

use Text::Reform;

my @vals = (1.1,22.22,333.333);

print form 
']]]]]].[[',
[@vals];


print form 
']]]]]].[[',
[@vals];

setlocale(LC_CTYPE, "");

print form 
']]]]]].[[',
[@vals];