Name

langinfo

Synopsis

langinfo(constant)

Returns the locale-specific data associated with the specified constant. For example, the following prints the date and time in the format for the current locale:

print langinfo(D_T_FMT);

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.