in reply to Extra Character from telnet
For both $user and $password. Then we could see what is up properly. Im guessing however that is due to $/ being different from what TELNET thinks is a newline. Its quite possible that your OS thinks $/ is "\x0A" and Telnet thinks that \n is "\x0D\x0A" and since chomp only removes $/ from the end of a line it doesnt get the "\x0D". If this is so then(my $hex_user=$user)=~s/(.)/sprintf("%02x",ord($1))/egs; print "User: '$user' = '$hex_user'\n";
Probably would be the solution.$user=~s/\x0D\x0A$//;
UPDATE: Oops, didnt notice that you were on Win32. In this case I suspect its a similar problem, but with different values, ie not "\x0D\x0A". Show use the hex output of what you've got for the user value eh..
HTH
--- demerphq
my friends call me, usually because I'm late....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Extra Character from telnet
by AcidHawk (Vicar) on Dec 06, 2002 at 12:53 UTC | |
|
Re: Re: Extra Character from telnet
by AcidHawk (Vicar) on Dec 06, 2002 at 13:09 UTC | |
by zigdon (Deacon) on Dec 06, 2002 at 13:40 UTC |