本文介绍了您可以在PL / Perl中使用库吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道在编写PL / Perl函数时是否可以使用使用My :: Lib; 语句,或启用编译指示和功能(例如'使用严格;使用功能'switch'; )。

I'm just curious if when writing PL/Perl functions if I can have a use My::Lib; statement, or enable pragma's and features (e.g. 'use strict; use feature 'switch';).

推荐答案

使用PL / Perl。它限制了require和use的使用,因此您不能导入模块。但是,您可以安装PL / Perlu(用于非受限模式),该模式允许您加载模块。

Not when using PL/Perl. It restricts the use of require and use, so you cannot import modules. However, you can install PL/Perlu (for unrestricted mode) which allows you to load modules.

plperlu可被视为安全隐患,因为它还允许文件系统。这样的命令,例如open。

plperlu can be considered a security risk, however, as it also allows filesystem commands such as open.

这篇关于您可以在PL / Perl中使用库吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 17:28
查看更多