in reply to Re: Localized weekday names
in thread Localized weekday names
and if I remove the "use_locale" line, I get this interesting result:mcp:~>perl days.pl Can't locate object method "use_locale" via package "Time::Piece" at d +ays.pl line 10.
I must admit, I have no clue why the second call to Time::Piece does not work anymore.Days are Sun Mon Tue Wed Thu Fri Sat Days are Time::Piece
Versions are:
Last, but not least, Time::Piece apparently does not care for the locale by default:p5-Time-Piece-1.23_1 Time::Piece - Object Oriented time obje +cts This is perl 5, version 24, subversion 3 (v5.24.3) built for amd64-fre +ebsd-thread-multi
mcp:~>LC_TIME=de_DE.UTF-8 perl -MTime::Piece -le 'print join",",Time:: +Piece->day_list' Sun,Mon,Tue,Wed,Thu,Fri,Sat
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Localized weekday names
by hippo (Archbishop) on Nov 03, 2017 at 16:04 UTC |