Subject: | Encode::IMAPUTF7 doesn't work |
Date: | Thu, 3 Nov 2016 12:30:36 +0300 |
To: | bug-Encode-IMAPUTF7 [...] rt.cpan.org |
From: | "Alexander S." <asok177 [...] mail.ru> |
Hello there
# perl -v
This is perl 5, version 20, subversion 3 (v5.20.3) built for
i386-freebsd-thread-multi-64int
# cat rc.mail_utf7_to_utf8.pl
#!/usr/local/bin/perl
use Encode qw/encode decode/;
print encode('IMAP-UTF-7', 'RĂ©pertoir');
print decode('IMAP-UTF-7', 'R&AOk-pertoire');
# ./rc.mail_utf7_to_utf8.pl
Undefined subroutine &main::encode called at ./rc.mail_utf7_to_utf8.pl
line 5.
Thank you,
Alex