-----BEGIN PGP SIGNED MESSAGE----- Moin,
On Monday 27 June 2005 00:37, Michael G Schwern wrote: > On Sun, Jun 26, 2005 at 12:57:05PM +0100, Fergal Daly wrote: > > 1 the refs came from \&somefunc > > 2 the refs come from evaling strings of code > > 3 the refs are closures and therefore have some data associated with > > them > > > > For 3, it looks like B::Deparse does't handle the data at all so even > > if the deparsed subs are identical they may behave totally > > differently. > > This will simply have to be a caveat. Fortunately, if B::Deparse ever > gets this right we'll immediately benefit. > > > For 2 B::Deparse works and might be the only way but then again, it > > might be better to just get access to the original string of code > > before it gets compiled, > > If they want to compare the original string they should have put it in > their data structure. Simp. And comparing the original string doesn't tell you that "sub { 1+2; }" is "equal" to "sub { 3; }" :-) Best wishes, Tels - -- Signed on Mon Jun 27 18:40:51 2005 with key 0x93B84C15. Visit my photo gallery at http://bloodgate.com/photos/ PGP key on http://bloodgate.com/tels.asc or per email. "The UAC is making safer worlds through superior firepower." -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iQEVAwUBQsAsRHcLPEOTuEwVAQFqwAf/RfuAE7ayPYK7s4y7DiDP2urt+T8gI/Y9 c19jLJ96GUosiFs4HJ0OpLBMPMmGa6Wcrztv0bq9qfltJBS5TQ4YbDe+ugB3sU3X YhxMTNIFFQ3k6XfIN+dUvmc+ziyysYiOCwrDb0lAPwkABf6EzFqaSE7iB+nAIpjk VLY3+GSZaVyABNuBdSimmrwZldkfEZUpqvLjY5RS4sHLMItqpZdlS5QfWSmXYd5M RBfVUZ4ATnGlYqCsh0kky/cpR69ARO7tXbcVjRiyG6YrFahG/dyNjgJNOOdIeusL e17NQpfs5E8N7acshwcGABVbPCX/LCz9CsUufxbIbt4nzX1DcpAZTw== =73QQ -----END PGP SIGNATURE-----