Claus Färber > Net-IDN-Encode-0.99_20080919 > Net::IDN::Nameprep

Download:
Net-IDN-Encode-0.99_20080919.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View Bugs
Report a bug
Module Version: 0.99_20071012   Source  

NAME ^

Net::IDN::Nameprep - A Stringprep Profile for Internationalized Domain Names (RFC 3491)

SYNOPSIS ^

  use Net::IDN::Nameprep;
  $output = nameprep $input;

DESCRIPTION ^

This module implements the nameprep specification, which describes how to prepare internationalized domain name (IDN) labels in order to increase the likelihood that name input and name comparison work in ways that make sense for typical users throughout the world. Nameprep is a profile of the stringprep protocol and is used as part of a suite of on-the-wire protocols for internationalizing the Domain Name System (DNS).

FUNCTIONS ^

This module implements a single function, nameprep, which is exported by default.

nameprep($input)

Processes $input according to the nameprep specification and returns the result.

If $input contains characters not allowed for nameprep, it throws an exception (so use eval if necessary).

This function currently supports preparation for query strings only.

AUTHOR/LICENSE ^

Copyright © 2007-2008 Claus Färber <CFAERBER@cpan.org>

Previous versions Copyright © Tatsuhiko Miyagawa <miyagawa@bulknews.net>

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

SEE ALSO ^

Unicode::Stringprep, RFC 3491 http://www.ietf.org/rfc/rfc3491.txt