Name
locale2language_tag
Synopsis
locale2language_tag(locale
)
Takes a locale name and maps it to a language tag. Certain
tags aren’t mappable, such as C
or POSIX
, in which case
local2language_tag
will return
an empty list.
locale2language_tag('en'); # Returns 'en' locale2language_tag('POSIX'); # Returns undef or ()
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.