in reply to Re: (tye)Re: ref, no, maybe?
in thread ref, no, maybe?
Merlyn's solution looks somewhat cleaner to me. What do you think?if eval( $r->can('can')) { #we have an object } elsif ref( $r) { #we have an unblessed reference } else { #no reference at all }
Jeroen
I was dreaming of guitarnotes that would irritate an executive kind of guy (FZ)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: can in Re: ref, no, maybe?
by tye (Sage) on Jan 11, 2001 at 19:35 UTC |