in reply to Problem with simple program reading from STDIN
Because $temp contains a carriage-return, although I'm not sure what you are trying to do with that last one. (Also, your print statements do NOT contain a carriage return, and so they won't print quite the way you expect.)
chomp($temp = <STDIN>);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Code question?
by yellowbeard (Initiate) on Mar 11, 2003 at 23:54 UTC |