knight has asked for the wisdom of the Perl Monks concerning the following question:
Note that I can't use the representation of the memory address itself, because that will likely be different each time Cons is run. If I knew how long the compiled code ended up being, I could theoretically generate the signature on N bytes starting at the supplied address, but I don't see how to do that, either.# call it: $coderef->(); # not what I want, obviously # stringify it: "$coderef" # generates "CODE(0x8405f54)", e.g.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: how can I access code ref contents, not call it?
by tilly (Archbishop) on Jan 04, 2001 at 05:36 UTC | |
by clemburg (Curate) on Jan 04, 2001 at 17:46 UTC | |
by knight (Friar) on Jan 04, 2001 at 23:23 UTC | |
|
Re: how can I access code ref contents, not call it?
by autark (Friar) on Jan 04, 2001 at 05:47 UTC | |
by tilly (Archbishop) on Jan 04, 2001 at 05:55 UTC | |
|
Re: how can I access code ref contents, not call it?
by 2501 (Pilgrim) on Jan 04, 2001 at 05:56 UTC |