如何使用perl中的条件 [英] how to use if condition in perl
本文介绍了如何使用perl中的条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经编写程序来检查输入的用户名和密码是否是公司成员....我是perl语言的新手...所以请帮助我以下程序出了什么问题..
提前提交的比赛...
展开 | 选择 | Wrap | 行号
解决方案
one事情是,如果你在单引号字符串中使用标量,它将不会被扩展但按字面意思处理:
展开 | 选择 | Wrap | 行号
请在代码标签中发布,
也用于更多调试。
展开 | 选择 | Wrap < span class =codeDivider> | 行号
请在代码标签中发布,
也用于更多调试。
展开 | 选择 | Wrap | 行号跨度>
i have written program to check whether the username and password entered are members of a company or not.... Im totally new to perl language... so please help me what is wrong with the following program..
thanx in advance...
Expand|Select|Wrap|Line Numbers解决方案one thing is if you use a scalar in a single-quoted string it will not be expanded but treated literally:
Expand|Select|Wrap|Line Numbers
Please Post in Code Tags,
Also Use for more debug.
Expand|Select|Wrap|Line Numbers
Please Post in Code Tags,
Also Use for more debug.
Expand|Select|Wrap|Line Numbers
这篇关于如何使用perl中的条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆