This code works in ruby, tcl, expect.
# Although expect is subset of tcl.
$ cat > hello.txt
puts "Hello, world"
^D
$ ruby hello.txt
Hello, world
$ tclsh hello.txt
Hello, world
$ except hello.txt
Hello, world
common points
- No need ( ... ) to call the function.
- No need semi-colon