Case-sensitivity of identifiers: Difference between revisions

Content added Content deleted
m (whitespace)
(→‎Tcl: Added implementation)
Line 44: Line 44:
The three dogs are named Benjamin , Samba , and Bernie
The three dogs are named Benjamin , Samba , and Bernie
>>> </lang>
>>> </lang>

=={{header|Tcl}}==
Tcl variable names are case sensitive:
<lang tcl>set dog "Benjamin"
set Dog "Samba"
set DOG "Bernie"
puts "The three dogs are named '$dog', '$Dog' and '$DOG'"</lang>
Which prints...
<pre>The three dogs are named 'Benjamin', 'Samba' and 'Bernie'</pre>