File: demo_currency.pl

package info (click to toggle)
libperl6-form-perl 0.090-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 584 kB
  • sloc: perl: 3,080; makefile: 8
file content (69 lines) | stat: -rwxr-xr-x 725 bytes parent folder | download | duplicates (7)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
use Perl6::Form;

@amounts = map {($_, -$_)} 1, 1.2, 1234.567, 1234.5678, 123456, 'six';

print form
	'{A$(]]]].[[)}',
	\@amounts;

print "\n\n";

print form
	'{kr -]]]].[[}',
	\@amounts;

print "\n\n";

print form
	'{-]]]].[[}',
	\@amounts;

print "\n\n";

print form
	"{\x{20AC}]]]].[[-}",
	\@amounts;

print "\n\n";

print form
	'{]]]].[[}',
	\@amounts;

print "\n\n";


print form {rfill=>0},
	"{]],]],]]].[\x{20A8}}",
	\@amounts;

print "\n\n";

print form
	"{].]]],[DM}",
	\@amounts;

print "\n\n";


print form
	'{]]]].[[}',
	\@amounts;

print "\n\n";

print form {rfill=>0},
	'{$]]].[}',
	\@amounts;

print "\n\n";

print form
	"{]']]],[CHF}",
	\@amounts;

print "\n\n";

print form
	'{].]]]$[ Esc.}',
	\@amounts;