B
Billy
I ran into a problem that I went round-and-round on until I broke an input
to the simplest test code I could think of and it still doesn't work...
print "Enter a number: ";
$number = <>;
print "The number is $number.\n";
or
$number = <STDIN>;
print STDOUT "The number is $number.\n";
What happens with both attempts is it prints:
Enter a number: The number is.
without pausing for an input.....
All other parts of my code works except when I want to get an input from the
keyboard....
What am I missing?
Billy
to the simplest test code I could think of and it still doesn't work...
print "Enter a number: ";
$number = <>;
print "The number is $number.\n";
or
$number = <STDIN>;
print STDOUT "The number is $number.\n";
What happens with both attempts is it prints:
Enter a number: The number is.
without pausing for an input.....
All other parts of my code works except when I want to get an input from the
keyboard....
What am I missing?
Billy