我正在研究一个与
PAR捆绑在一起的大型Perl应用程序,以及一堆支持文件.
当应用程序在PAR中运行时,我可以使用PAR :: read_file来获取存档中的这些各种文件.但是,在我开发的过程中,我不想每次调整一些代码时都必须对整个应用程序进行重新PAR.
解决方法
PAR::Environment可能提供一些线索:
PAR uses varIoUs environment variables both during the building process of executables or PAR archives and the use of them.
…
PAR_0
If the running program is run from within a PAR archive or pp-produced executable,this variable contains the name of the extracted program (i.e. .pl file).