Case-sensitivity of identifiers: Difference between revisions

Content deleted Content added
→‎Tcl: Added implementation
m →‎{{header|Tcl}}: match output properly
Line 50: Line 50:
set Dog "Samba"
set Dog "Samba"
set DOG "Bernie"
set DOG "Bernie"
puts "The three dogs are named '$dog', '$Dog' and '$DOG'"</lang>
puts "The three dogs are named $dog, $Dog and $DOG"</lang>
Which prints...
Which prints...
<pre>The three dogs are named 'Benjamin', 'Samba' and 'Bernie'</pre>
<pre>The three dogs are named Benjamin, Samba and Bernie</pre>