TSa (>): > I just want to make sure that I got the problem right. Would > > my $cl = { "$^name upcased becomes {$^OUTER::name.uc}" }; > say $cl("larry") > > work? The idea is that the embedded closure refers to the strings > $^name. And now the dwimmyness shall make that implicit, right?
I guess that should work. I'm not sure how OUTER:: works together with the hat twigil, but it has all the hallmarks of avoiding the problem, yes. // Carl