F
Faith Greenwood
I have the following:
use strict;
use warnings;
my $number=0;
print "This:$number\n";
print "That:$number\n" if $number;
__END__
Of the two lines that print the variable, why does it print the first
line but not the second?
If I change the $number to equal 1, then both lines print fine.
thank you
use strict;
use warnings;
my $number=0;
print "This:$number\n";
print "That:$number\n" if $number;
__END__
Of the two lines that print the variable, why does it print the first
line but not the second?
If I change the $number to equal 1, then both lines print fine.
thank you