Hi Norbert,

The way the locale data is packaged changed a while back in the 1.00
release in 2015. There's no longer a `.pm` file per locale. If you want to
preload locale data, you should just call `DateTime::Locale->load($locale)`.

I'm guessing you have some `Storable`-serialized `DateTime` objects that
included pre-1.00 locales. The only way to thaw them is probably to install
an older `DateTime-Locale` release.

Longer-term, I'd suggest _not_ using `Storable` to serialize data. It
generates data that is too tied together with the internals of the
libraries that produced the objects.


Cheers,

Dave Rolsky
http://blog.urth.org
https://github.com/autarch


On Fri, Nov 17, 2023 at 12:34 PM Zacharias, Norbert via datetime <
datetime@perl.org> wrote:

> Hi all,
>
> I try to install DateTime. Even there is no error reported during
> installation it seems that the *pm files like en_US.pm are missing. The
> only related files I can find are *.pod like en_US.pod.
> If I try to use Storable::retrieve I get an error message
>
> perl -e "use Storable retrieve ; \$x=retrieve('./VeriPars.dat');"
> Can't locate DateTime/Locale/en_US.pm in @INC (you may need to install the
> DateTime::Locale::en_US module) (@INC contains:
> /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads
> /usr/local/share/perl5/site_perl/5.32
> /usr/lib/perl5/vendor_perl/5.32/x86_64-cygwin-threads
> /usr/share/perl5/vendor_perl/5.32 /usr/lib/perl5/5.32/x86_64-cygwin-threads
> /usr/share/perl5/5.32) at
> /usr/lib/perl5/5.32/x86_64-cygwin-threads/Storable.pm line 421.
> BEGIN failed--compilation aborted, at -e line 1.
>
> Storable is uptodate:
>
> Storable
> -------------------------------------------------------------------------
>         (no description)
>         N/NW/NWCLARK/Storable-3.25.tar.gz
>
> /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads/Storable.pm
>         Installed: 3.25
>         CPAN:      3.25  up to date
>         Nicholas Clark (NWCLARK)
>         nwc10+please+use+perlbug+for+perl+quer...@colon.colondot.net
>
>
> Do I miss something?
>
> Thanks in advance for your help
>
> Norbert Zacharias
>
> UL International GmbH
> Kasinoplatz 3
> 26122 Oldenburg, Germany
>
> T:: +49 441 77937 110 | F:: +49 441 77937 133 | norbert.zachar...@ul.com|
> www.ul.com
>
> Commercial Register No.: Amtsgericht Oldenburg, HRB 130241
> VAT DE117895432 St-Nr. 20/200/32924-PAN AADCD15130A
> Geschäftsführer/Managing Director: Mirko Bautz, Ryan David Robinson, Gitte
> Schjøtz
>
>
>
> This e-mail may contain privileged or confidential information. If you are
> not the intended recipient: (1) you may not disclose, use, distribute, copy
> or rely upon this message or attachment(s); and (2) please notify the
> sender by reply e-mail, and then delete this message and its attachment(s).
> Underwriters Laboratories Inc. and its affiliates disclaim all liability
> for any errors, omissions, corruption or virus in this message or any
> attachments.
>

Reply via email to