如何将文本解析为Perl中的json文件? [英] How do I parse an text into a json file in Perl?

查看:132
本文介绍了如何将文本解析为Perl中的json文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用perl解析平面文件,然后将它们转换为

JSON格式,以便可以通过javascript读取它。到目前为止,我能够使用perl读取文本文件,但我对解析部分非常困惑。任何人都可以指导我正确的方向或帮助我一些链接,以遵循

I am trying to parse a flat file using perl and then translate those into a
JSON format so that it can be read by javascript. So far I am able to read the text file using perl, but I am very confused about the parsing part. Can anyone guide me in the right direction or help me with some links to follow

推荐答案

JSON :: Parse [ ^ ]


这篇关于如何将文本解析为Perl中的json文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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