The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Lingua::Flags - Provide small flag icons

SYNOPSIS

Provides small flag icons in different formats.

    use Lingua::Flags;

    my $foo = as_html_img("PT");
    print "<p>This is in $foo language</p>";
     
    open GIF, ">image.gif";
    print GIF as_gif("PT");
    close GIF;

DISCLAIMER

It is impossible to map flags to languages. Languages cross countries. And countries cross languages. What language should use the Spanish flag? The Catalan or Castilian or other? What flag should be used for Afrikaans? South Africa or Namibia?

I tried to choose the more consensual flags, but in some cases I have doubts. If you have better ideas, please correct me.

Nevertheless, I think this module is useful.

DESCRIPTION

Module with small flags icons. You can get them in base64 inline HTML image or as a gif image.

FUNCTIONS

as_html_img

Returns an inline HTML image. For now, it just works with Netscape/Gecko based browsers.

as_gif

Returns the gif code. Normally used as:

  open GIF, ">image.gif";
  print GIF as_gif("PT");
  close GIF;

AUTHOR

Alberto Simoes, <ambs@cpan.org>

BUGS

Please report any bugs or feature requests to bug-lingua-flags@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Lingua-Flags. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE

Copyright 2007-2009 Alberto Simoes, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.