I need to find a list of locale installed/supported in my linux machine. is there a way to find a list of valid locales in my linux using perl ?
thanks
I need to find a list of locale installed/supported in my linux machine. is there a way to find a list of valid locales in my linux using perl ?
thanks
If you want the list of all supported locales, in my Debian distro they are in
/usr/share/i18n/SUPPORTED
, so you could do:http://perldoc.perl.org/perllocale.html#Finding-locales:
This command will give you a list of locales:
From a Perl script you can execute the same using