有没有办法使用perl在我的linux中找到有效语言环境的列表? [英] is there a way to find list of valid locales in my linux using perl?

查看:61
本文介绍了有没有办法使用perl在我的linux中找到有效语言环境的列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要找到在我的linux机器上安装/支持的语言环境的列表. 有没有办法使用perl在我的linux中找到有效语言环境的列表?

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 ?

谢谢

推荐答案

此命令将为您提供语言环境列表:

This command will give you a list of locales:

locale -a

从Perl脚本中,您可以使用来执行相同的操作

From a Perl script you can execute the same using

system("locale -a");

这篇关于有没有办法使用perl在我的linux中找到有效语言环境的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆