I have come across a need to compare an object value inside a function. Unfortunately, the object gets
interpolated. I can do the comparison as a string, e.g.:
if ($record eq "oRecord=HASH(0x1475d44)")
but I was wondering if there is a way to "resurrect" the
object so that I can ask:
if ($record == ??)
Would this kind of behaviour be frowned upon? Any good reason I shouldn't do it?