in reply to Behaving appropriately based on ref() result
ref() can return anything for blessed objects
perl -le 'print ref(bless{},"Hello World")'
Scalar util's reftype is better for this job.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Behaving appropriately based on ref() result
by demerphq (Chancellor) on Jan 09, 2006 at 08:46 UTC |