Anonymous user
Copy a string: Difference between revisions
→{{header|ALGOL 68}}: ++ awk
(→{{header|Seed7}}: ++ smalltalk) |
(→{{header|ALGOL 68}}: ++ awk) |
||
Line 40:
dest:=src
)
=={{header|AWK}}==
<lang awk>BEGIN {
a = "a string"
b = a
sub(/a/, "X", a) # modify a
print b # b is a copy, not a reference to...
}</lang>
=={{header|BASIC}}==
|