- or download this
# Redirect STDOUT.
...
}
print(...); # Goes to file if one was specified, else STDOUT.
- or download this
# Use select.
...
}
print(...); # Goes to file if one was specified, else STDOUT.
- or download this
# If you want to output to STDOUT and to the file,
# create a handle which may point to STDOUT.
...
print FILE (...); # Goes to file if one was specified, else STDOUT.
print(...); # Goes to STDOUT.