msgsbox
February 25th, 2006, 07:36 PM
Just start learn Perl..
I try this:
$in1=<STDIN>;
$in2=<STDIN>;
$x1=$in1==$in2;
print("$x1");
Question:
enter 1 and 1, I got 1;
but enter 1 and 2, I got nothing, suppose to be 0, right?
I try this:
$in1=<STDIN>;
$in2=<STDIN>;
$x1=$in1==$in2;
print("$x1");
Question:
enter 1 and 1, I got 1;
but enter 1 and 2, I got nothing, suppose to be 0, right?