houseabsolute / DateTime-Locale

Localization support for DateTime.pm
https://metacpan.org/release/DateTime-Locale/
Other
3 stars 12 forks source link

native_name instead of native_locale_name in SYNOPSIS? #15

Closed yasu47b closed 7 years ago

yasu47b commented 7 years ago

my Environment

OS: Ubuntu 14.04 64bit Perl version: 5.18.1 DateTime-Locale-Version: 1.12

Code:

#!/usr/bin/env perl
use strict;
use warnings;
use DateTime;
use DateTime::Locale;
use v5.10;

my $loc = DateTime::Locale->load('en-GB');
say $loc->native_locale_name, $loc->datetime_format_long;

I got an Error .

Can't locate object method "native_locale_name" via package "DateTime::Locale::FromData" at ./a.pl line 9, <DATA> line 1.

maybe native_name is correct instead of native_locale_name in SYNOPSIS?

thanks great module.