note
diotalevi
<p>This is so obvious that I must have missed something. <code>(caller 1)[3]</code> has the caller's package and you could specify a protocol where the contract exists in __PACKAGE__ . "::Contract". So from your test code you'd say <code>use Contract::File;</code> and in Contract::File your import() would fetch the caller's package.</p><p>So now that I've publicly misunderstood your question, what did you mean again?</p>
270259
270259