From 1a66b75fec2200ca335e0689e23b34de8f693b81 Mon Sep 17 00:00:00 2001 From: Graham Ollis Date: Sun, 4 Apr 2021 06:21:19 -0600 Subject: [PATCH] update synopsis to use single quite Since there is a @ in the second example it gets interpreted as a array sigil, and running the code as-is (with `use utf8`) produces this error: Non-ASCII characters in local-part at synopsis.pl line 4. I updated the domain_to_ascii example as well just to keep the three examples consistent. --- lib/Net/IDN/Encode.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Net/IDN/Encode.pm b/lib/Net/IDN/Encode.pm index 695db81..91baa5a 100755 --- a/lib/Net/IDN/Encode.pm +++ b/lib/Net/IDN/Encode.pm @@ -117,8 +117,8 @@ Net::IDN::Encode - Internationalizing Domain Names in Applications (IDNA) =head1 SYNOPSIS use Net::IDN::Encode ':all'; - my $a = domain_to_ascii("müller.example.org"); - my $e = email_to_ascii("POSTMASTER@例。テスト"); + my $a = domain_to_ascii('müller.example.org'); + my $e = email_to_ascii('POSTMASTER@例。テスト'); my $u = domain_to_unicode('EXAMPLE.XN--11B5BS3A9AJ6G'); =head1 DESCRIPTION