> > My initial quick-glance at B::Deparse's documentation mentions
> > something about perl optimising certain constants away, which could
> > well throw a spanner into the works. Storable uses B::Deparse when
> > serialising coderefs, though, so I'm certain there's a way around
> > this.
> 
> That shouldn't matter because any oddities B::Deparse applies to one code
> ref it will apply to the other.  For equivalent code the decompiled
> result should be the same.

After tinkering with B::Deparse for a bit, I think this particular
"oddity" may just be a result of poorly-written docs (or, more
probably, poorly-read on my part). The module seems to do the right
thing in all cases I could come up with (i.e., it only optimises out
truly-useless constants), so it should be safe to use for this
particular purpose. With this matter sorted, I've started on the code
and requisite tests to make the new stuff work.

Collin Winter

Reply via email to