基于Eclipse的Perl的IDE软件EPIC出现Insecure dependency in open while running with -T switch错误!

今天写了一个非常简单的批量写入文件的代码:

 

然后通过eclipse的运行按钮,怎么也无法实现文件的创建功能,我非常纳闷,这里怎么也看不出来错误,可惜

总是提示Insecure dependency in open while running with -T switch 错误,在Perl专业群中求助了很

久还是没有解决,最后使用 File::Slurp 就没事了。代码如下:

 

非常困惑,但是出错的代码,如果我通过cmd运行,就没有错误了。只可能是eclipse在运行的时候是加-t运行的。

所以就出现了错误,Perl就退出了。

这里简单说说File::Slurp模块,它能实现更高效的文件读写,因为内部调用的是 sysopen/sysread/syswrite等函数,

直接调用内核命令。所以效率更高!

以后碰到问题,是需要多尝试下,本来没有错误的代码,不同的运行环境,就是会出错。

今天又学习到了一点。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven(XXX)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. 该错误表示在使用Maven仓库时,使用不安全的协议(如HTTP)而没有明确的授权是不被支持的。解决方法有两种: 1. 在项目的build.gradle文件中添加关键字allowInsecureProtocol,并设置为true,例如: maven { allowInsecureProtocol = true url 'xxx' } 2. 将Maven仓库的地址URL从HTTP改为HTTPS,例如: maven { allowInsecureProtocol true url 'https://maven.aliyun.com/nexus/content/groups/public/' } 要解决这个问题,您可以根据上述方法之一进行操作。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven...](https://blog.csdn.net/qq_22255311/article/details/122600752)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [解决Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch ...](https://blog.csdn.net/wanghonghongkx/article/details/128611987)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值