in reply to (Some) inconsistencies with IO built-ins, their documentation and filehandle names ("symbolic references")
Things that can usually be used as a file handle:
I would expect functions (named operators) to accept all of these. Subs may be more picky. In particular, subs don't normally support the last one.
Language constructs (syntax) that can be usually be used to provide a file handle to a function (named operator):
say, print and printf are notable exceptions. They require one of the following:
A bareword may be provided to subs using the «*» prototype (passing the bareword as a string).
Update: What can be used as a handle vs what syntax can be used to provide it was poorly distinguished originally.
|
|---|