Perl程序中的问题 [英] Problem in Perl program

查看:83
本文介绍了Perl程序中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我是perl编程的新手,任何人都可以帮我在这个程序中给出正确的方法

" Zip all 。*从一个Windows目录到另一个目录的文件。


这是我的代码。

Hi Everyone,

I am new in perl programming can anyone help me to give a right way to do in this program
"Zip all .* file from a one windows directory to another directory."

Here is my code.

展开 | 选择 | Wrap | 行号

推荐答案


大家好,


我是perl的新手编程可以任何人帮我在这个程序中给出正确的方法

"从一个窗口拉出所有。*文件ws目录到另一个目录。


这是我的代码。

Hi Everyone,

I am new in perl programming can anyone help me to give a right way to do in this program
"Zip all .* file from a one windows directory to another directory."

Here is my code.

展开 | 选择 | 换行 | 行号


谢谢!

杰夫,


我用过stirct并使用警告

我收到了这么多错误喜欢,所以请帮我跟踪这个剧本。

提前致谢。


Thanks!
Jeff,

I used use stirct and use warnings
I got so many error like ,So please help me to traceout from this script.
Thanks in advance.




所以,如果你运行代码,你有任何错误吗?在此之前任何人触及此代码之前,您将不得不包含编译指示use strict和使用警告首先得到通常的错误。


REgards,


Jeff
So, if you run the code, are you getting any errors? Before anyone here touches this code though, you are going to have to include the pragmas "use strict" and "use warnings" and get the usual bugs out of the way first.

REgards,

Jeff



谢谢!

杰夫,


我用过stirct并使用警告

我收到了很多错误,所以请帮我跟踪这个脚本。

提前谢谢。
Thanks!
Jeff,

I used use stirct and use warnings
I got so many error like ,So please help me to traceout from this script.
Thanks in advance.



使用严格编译指示时,必须使用我的关键字将所有变量定义为脚本的本地变量。除此之外,我在while循环中做了一些改动,在循环中包含了接下来的五行。这对我有用。

When you use strict pragma, you have to define all your variables as local to the script using ''my'' keyword. Apart from that, I have made few changes in while loop, by including next five lines inside the loop. This worked for me.

展开 | 选择 | Wrap | 行号


这篇关于Perl程序中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆