May I ask what kind of system you are using ?

For me, Win32, I will use chop, like
chop($input); # Kill whatever the last char at a line

But if I go on with unix like system, I have to use chomp, like
chomp($input); # kill only CR at the end of line.

I don't know why, but chomp doesn't take effect on my system (Win32).
So you may try both to find the one fit you needs.

Rgds,
Connie


----- Original Message ----- 
From: "Mark Thumper Weisman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 13, 2002 3:30 PM
Subject: Newbie about <STDIN>


> Hello List,
>    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>?
> 
> Thanks,
> Mark
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to