Using perl within Objective-C?

混江龙づ霸主 提交于 2019-12-07 11:00:35

问题


CPAN has a ton of very useful libraries. Outside of porting them to Objective-C, is there is method to embed perl code in Objective-C on iOS? I am particularly interested in using Spreadsheet::Read to read Excel file data (and no, I don't want to force users to re-save their files as CSV).


回答1:


Have you read perldoc perlembed, which documents how to embed perl in a C program?




回答2:


Run the perl script with NSTask().



来源:https://stackoverflow.com/questions/5533289/using-perl-within-objective-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!