1Lingua::Flags(3) User Contributed Perl Documentation Lingua::Flags(3)
2
3
4
6 Lingua::Flags - Provide small flag icons
7
9 Provides small flag icons in different formats.
10
11 use Lingua::Flags;
12
13 my $foo = as_html_img("PT");
14 print "<p>This is in $foo language</p>";
15
16 open GIF, ">image.gif";
17 print GIF as_gif("PT");
18 close GIF;
19
21 It is impossible to map flags to languages. Languages cross countries.
22 And countries cross languages. What language should use the Spanish
23 flag? The Catalan or Castilian or other? What flag should be used for
24 Afrikaans? South Africa or Namibia?
25
26 I tried to choose the more consensual flags, but in some cases I have
27 doubts. If you have better ideas, please correct me.
28
29 Nevertheless, I think this module is useful.
30
32 Module with small flags icons. You can get them in base64 inline HTML
33 image or as a gif image.
34
36 as_html_img
37 Returns an inline HTML image. For now, it just works with
38 Netscape/Gecko based browsers.
39
40 as_gif
41 Returns the gif code. Normally used as:
42
43 open GIF, ">image.gif";
44 print GIF as_gif("PT");
45 close GIF;
46
48 Alberto Simoes, "<ambs@cpan.org>"
49
51 Please report any bugs or feature requests to
52 "bug-lingua-flags@rt.cpan.org", or through the web interface at
53 <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Lingua-Flags>. I will
54 be notified, and then you'll automatically be notified of progress on
55 your bug as I make changes.
56
58 Copyright 2007-2009 Alberto Simoes, all rights reserved.
59
60 This program is free software; you can redistribute it and/or modify it
61 under the same terms as Perl itself.
62
63
64
65perl v5.32.1 2021-01-27 Lingua::Flags(3)