Error[8]: Undefined offset: 2, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述我们维护了大量的perl模块,实际上它非常庞大,我们甚至不知道我们负责的所有模块.我们希望跟踪哪些脚本和模块在某种日志中访问另一个模块,最好是按模块名称存储,这样我们就可以评估更新模块是否存在风险,以便我们知道可能会影响到什么. 有没有简单的方法来做到这一点? 也许编辑sitecustomize.pl,以便每次Perl运行时,它会在日志中写入一些信息,然后分析它?添加这样的东西到sitecusto 我们维护了大量的perl模块,实际上它非常庞大,我们甚至不知道我们负责的所有模块.我们希望跟踪哪些脚本和模块在某种日志中访问另一个模块,最好是按模块名称存储,这样我们就可以评估更新模块是否存在风险,以便我们知道可能会影响到什么.

有没有简单的方法来做到这一点?

解决方法 也许编辑sitecustomize.pl,以便每次Perl运行时,它会在日志中写入一些信息,然后分析它?添加这样的东西到sitecustomize.pl:

open (LOG,'>>',"absolutepathto/logfile.txt");print LOG 
open (LOG,' ',[+++];while (<SELF>) {print LOG $_ if (/use|require/);}close SELF;END {local $" = "\n";print LOG "files loaded by use,eval,or do functions at the end of this program run:\n";print LOG "@{[values %INC]}","\n";print LOG "_" x 80,"\n";close LOG;}
,"\t",$$,scalar(localtime),"\n";open SELF,[+++];while (<SELF>) {print LOG $_ if (/use|require/);}close SELF;print LOG "_" x 80,"\n";close LOG;

编辑:
此外,我们忘记了%INC哈希,因此上面的代码可能会被重写如下,以包含更多关于实际加载哪些模块的数据包括do函数所需的文件:

[+++] 总结

以上是内存溢出为你收集整理的Perl记录哪些脚本/模块访问另一个模块全部内容,希望文章能够帮你解决Perl记录哪些脚本/模块访问另一个模块所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 166, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 3, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述我们维护了大量的perl模块,实际上它非常庞大,我们甚至不知道我们负责的所有模块.我们希望跟踪哪些脚本和模块在某种日志中访问另一个模块,最好是按模块名称存储,这样我们就可以评估更新模块是否存在风险,以便我们知道可能会影响到什么. 有没有简单的方法来做到这一点? 也许编辑sitecustomize.pl,以便每次Perl运行时,它会在日志中写入一些信息,然后分析它?添加这样的东西到sitecusto 我们维护了大量的perl模块,实际上它非常庞大,我们甚至不知道我们负责的所有模块.我们希望跟踪哪些脚本和模块在某种日志中访问另一个模块,最好是按模块名称存储,这样我们就可以评估更新模块是否存在风险,以便我们知道可能会影响到什么.

有没有简单的方法来做到这一点?

解决方法 也许编辑sitecustomize.pl,以便每次Perl运行时,它会在日志中写入一些信息,然后分析它?添加这样的东西到sitecustomize.pl:

open (LOG,'>>',"absolutepathto/logfile.txt");print LOG 
open (LOG,' ',;while (<SELF>) {print LOG $_ if (/use|require/);}close SELF;END {local $" = "\n";print LOG "files loaded by use,eval,or do functions at the end of this program run:\n";print LOG "@{[values %INC]}","\n";print LOG "_" x 80,"\n";close LOG;}
,"\t",$$,scalar(localtime),"\n";open SELF,[+++];while (<SELF>) {print LOG $_ if (/use|require/);}close SELF;print LOG "_" x 80,"\n";close LOG;

编辑:
此外,我们忘记了%INC哈希,因此上面的代码可能会被重写如下,以包含更多关于实际加载哪些模块的数据包括do函数所需的文件:

[+++] 总结

以上是内存溢出为你收集整理的Perl记录哪些脚本/模块访问另一个模块全部内容,希望文章能够帮你解决Perl记录哪些脚本/模块访问另一个模块所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 166, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 4, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述我们维护了大量的perl模块,实际上它非常庞大,我们甚至不知道我们负责的所有模块.我们希望跟踪哪些脚本和模块在某种日志中访问另一个模块,最好是按模块名称存储,这样我们就可以评估更新模块是否存在风险,以便我们知道可能会影响到什么. 有没有简单的方法来做到这一点? 也许编辑sitecustomize.pl,以便每次Perl运行时,它会在日志中写入一些信息,然后分析它?添加这样的东西到sitecusto 我们维护了大量的perl模块,实际上它非常庞大,我们甚至不知道我们负责的所有模块.我们希望跟踪哪些脚本和模块在某种日志中访问另一个模块,最好是按模块名称存储,这样我们就可以评估更新模块是否存在风险,以便我们知道可能会影响到什么.

有没有简单的方法来做到这一点?

解决方法 也许编辑sitecustomize.pl,以便每次Perl运行时,它会在日志中写入一些信息,然后分析它?添加这样的东西到sitecustomize.pl:

open (LOG,'>>',"absolutepathto/logfile.txt");print LOG 
open (LOG,' ',;while (<SELF>) {print LOG $_ if (/use|require/);}close SELF;END {local $" = "\n";print LOG "files loaded by use,eval,or do functions at the end of this program run:\n";print LOG "@{[values %INC]}","\n";print LOG "_" x 80,"\n";close LOG;}
,"\t",$$,scalar(localtime),"\n";open SELF,;while (<SELF>) {print LOG $_ if (/use|require/);}close SELF;print LOG "_" x 80,"\n";close LOG;

编辑:
此外,我们忘记了%INC哈希,因此上面的代码可能会被重写如下,以包含更多关于实际加载哪些模块的数据包括do函数所需的文件:

[+++] 总结

以上是内存溢出为你收集整理的Perl记录哪些脚本/模块访问另一个模块全部内容,希望文章能够帮你解决Perl记录哪些脚本/模块访问另一个模块所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 166, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Perl记录哪些脚本模块访问另一个模块_语言综合_内存溢出

Perl记录哪些脚本模块访问另一个模块

Perl记录哪些脚本模块访问另一个模块,第1张

概述我们维护了大量的perl模块,实际上它非常庞大,我们甚至不知道我们负责的所有模块.我们希望跟踪哪些脚本和模块在某种日志中访问另一个模块,最好是按模块名称存储,这样我们就可以评估更新模块是否存在风险,以便我们知道可能会影响到什么. 有没有简单的方法来做到这一点? 也许编辑sitecustomize.pl,以便每次Perl运行时,它会在日志中写入一些信息,然后分析它?添加这样的东西到sitecusto 我们维护了大量的perl模块,实际上它非常庞大,我们甚至不知道我们负责的所有模块.我们希望跟踪哪些脚本和模块在某种日志中访问另一个模块,最好是按模块名称存储,这样我们就可以评估更新模块是否存在风险,以便我们知道可能会影响到什么.

有没有简单的方法来做到这一点?

解决方法 也许编辑sitecustomize.pl,以便每次Perl运行时,它会在日志中写入一些信息,然后分析它?添加这样的东西到sitecustomize.pl:

open (LOG,'>>',"absolutepathto/logfile.txt");print LOG 
open (LOG,' ',;while (<SELF>) {print LOG $_ if (/use|require/);}close SELF;END {local $" = "\n";print LOG "files loaded by use,eval,or do functions at the end of this program run:\n";print LOG "@{[values %INC]}","\n";print LOG "_" x 80,"\n";close LOG;}
,"\t",$$,scalar(localtime),"\n";open SELF,;while (<SELF>) {print LOG $_ if (/use|require/);}close SELF;print LOG "_" x 80,"\n";close LOG;

编辑:
此外,我们忘记了%INC哈希,因此上面的代码可能会被重写如下,以包含更多关于实际加载哪些模块的数据包括do函数所需的文件:

总结

以上是内存溢出为你收集整理的Perl记录哪些脚本/模块访问另一个模块全部内容,希望文章能够帮你解决Perl记录哪些脚本/模块访问另一个模块所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/1239357.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-06
下一篇 2022-06-06

发表评论

登录后才能评论

评论列表(0条)

保存