in reply to Length and Chomp ??
chomp $str;
However, it seems like you already knew that, so I can only assume you are using chomp wrong. Since you say that your string ends up with a length of 1, I'd wager your code is
$str = chomp $str; #Wrong!
chomp magically acts upon the arguments and does not require you to reassign.
|
|---|