in reply to eval with sub
That works just fine. Makes it a closure. 'tag00' can be a literal or a calculation.my $coderef = do { my $op = 'tag00'; sub { dofunc($op) } };
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: eval with sub
by strredwolf (Chaplain) on Mar 10, 2001 at 02:31 UTC | |
by merlyn (Sage) on Mar 10, 2001 at 02:41 UTC | |
by sierrathedog04 (Hermit) on Mar 10, 2001 at 12:41 UTC | |
by dws (Chancellor) on Mar 10, 2001 at 13:02 UTC | |
by merlyn (Sage) on Mar 10, 2001 at 16:22 UTC | |
by sierrathedog04 (Hermit) on Mar 10, 2001 at 17:23 UTC | |
by petral (Curate) on Mar 10, 2001 at 13:39 UTC |