in reply to STDIN typeglob
There is nothing special about STDIN (or stdin for that matter). It is exactly the same as any other file handle opened read only. The only thing "special" about it is that it is fileno 0.