in reply to Question re numbers and strings
In a word: atoi. You are using the numeric comparison operator >, so perl will try it's best to interpret the value as a number. For string comparisons you should use gt. The exact conversion on different platforms might vary depending on the implementation of the C run-time library routine atoi (ascii-to-int).