prints as expected the characters (a..y) but if I change lt in le in the while expression:$char = 'a'; while ($char lt 'z') { print $char; $char++; }
it prints (a..yz) instead of the expected (a..z)while ( $char le 'z' )
Originally posted as a Categorized Question.
In reply to lt versus le in string comparision by Len
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |