in reply to Re^2: How to tell if a variable is blessed ?
in thread How to tell if a variable is blessed ?
Simple, sweet, and gets the job done. Why over engineer? Of course, if you were already using Scalar::Util for some of its other uses, then I'd say great, but to use a module for something as simple as this, is overcomplicating matters.if ( ref($obj) eq "Foo" ) { # We have a Foo object }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to tell if a variable is blessed ?
by Fletch (Bishop) on Mar 02, 2006 at 15:17 UTC | |
by xdg (Monsignor) on Mar 02, 2006 at 15:34 UTC | |
|
Re^4: How to tell if a variable is blessed ?
by jasonk (Parson) on Mar 02, 2006 at 19:14 UTC |