Talk:Perl Programming/Scalar Variables
From Wikibooks, the open-content textbooks collection
[edit] Note not understood
I did not understand this note box very well. Can some one please clear it up for me?
| Note The two 'Comparison' operators are slightly different from the rest. Rather than returning only 1 or 0, these operators return -1 if the left argument is greater than the right argument, 0 if they are equal, and 1 if the right argument is greater than the left argument. |
- Is that clearer now? I added that the note applies to the operators <=> and cmp. -Mairi 01:09, 10 Jan 2005 (UTC)
- Yes, it is clearer now. Thank you, --Zoohouse 01:57, 10 Jan 2005 (UTC)
[edit] global versus local variables
maybe it's my setup, but i have trouble executing the code in the examples (even the Try It examples). it turns out i have to add "my" before variables - should this be part of the tutorial?