Then you should chomp
== should work without chomping (while $a eq "0" would not):
my $a = "0\n"; print "is zero\n" if $a == 0;
In reply to Re^2: read an integer from a file
by almut
in thread read an integer from a file
by long
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |