in reply to RE: Scoping and Objects
in thread Scoping and Objects

You could pass the speciality "sub" as a string rather than as a code ref. Then you could eval the string in the package context and stick the coderef from that in your structure. Would that work?

--
$you = new YOU;
honk() if $you->love(perl)

Replies are listed 'Best First'.
Re: Re: RE: Scoping and Objects
by radman (Novice) on Nov 17, 2000 at 19:38 UTC

    Good question. I'll try it, along with some other ideas that I have. I'll report back and tell everybody what the best solution was...
    Until then :)


    This has been R A D...