[Israel.pm] Detecting Scalar type?

Shmuel Fomberg semuelf at 012.net.il
Fri Jul 25 05:13:37 PDT 2008

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?


More information about the Perl mailing list