A
Amy Lee
Hello,
I'm a Perl newbie, and I have a problem about the 'if' structure.
If I wanna use more than one cpmparisons, how can I accomplish this
function in perl?
For example, in Shell script:
if [ "$#" -eq 0 -a -e "$somefile" ]
'-a' means "AND".
And in perl, I have two comparison, I wanna combine them.
1.if (@ARGV == 0)
2.if (-e $somefile)
Thank you in advance~
Amy Lee
I'm a Perl newbie, and I have a problem about the 'if' structure.
If I wanna use more than one cpmparisons, how can I accomplish this
function in perl?
For example, in Shell script:
if [ "$#" -eq 0 -a -e "$somefile" ]
'-a' means "AND".
And in perl, I have two comparison, I wanna combine them.
1.if (@ARGV == 0)
2.if (-e $somefile)
Thank you in advance~
Amy Lee