I am not sure why I am getting my length as 6 and not 5.
Sometimes, usually on DOS/Windows boxes, the "newline" from input has length of 2 bytes: CR (carriage return or "\r") and LF (line feed or "\n"). chomp eats both at the same time.
In reply to Re: Length and Chomp ??
by vitoco
in thread Length and Chomp ??
by snape
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |