RosettaCodeData/Task/Scope-Function-names-and-la.../AWK/scope-function-names-and-la...

10 lines
187 B
Awk

# This program outputs a greeting
BEGIN {
sayhello() # Call the function defined below
exit
}
function sayhello {
print "Hello World!" # Outputs a message to the terminal
}