Hi All. I'm writing an method, that suppose to get a scalar as parameter. However, this scalar can be one of few things: file handle, socket, string and so. I need to detect what this scalar is, and act accordingly. Does anyone have a piece of code that does that? Shmuel.