on Sat, 13 Jul 2002 07:30:35 GMT, Mark "Thumper" Weisman wrote:
> I've got an easy one probably, however, I can't figure it out. I'm
> writing a command line script which asks the user to complete some
> simple information. I use the <STDIN> pushing the value into a
> variable, however when I got to post the variable to another variable
> or array, it has a carraige return in it so instead of posting the
> way it should it adds lines vertically. Can anyone help me get the
> Carriage returns out of the <STDIN>?
See
perldoc -f chomp
$answer = <STDIN>;
chomp $answer; # remove newline
# ...
--
felix
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]