Net::IDN::Nameprep3pm
A stringprep profile for internationalized domain names (rfc 3491)
Usage
use Net::IDN::Nameprep;$output = nameprep $input;
Overview
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 [, AllowUnassigned => 1 ] )
-
Processes
$inputaccording to the nameprep specification and returns the result.If
$inputcontains characters not allowed for nameprep, it throws an exception (so use"eval"if necessary).This function takes the following optional parameter:
- AllowUnassigned
-
(boolean) If set to a false value, unassigned code points in
$inputare not allowed.False MUST be used for stored strings.
True MAY be used for queries.
The default is true (backwards compatibility).
Releases
6 releases since Debian 8 (Jessie); the text changed 2 times.