No such thing as a small change | |
PerlMonks |
Re^3: {Perl6} Macros and native compilationby iblech (Friar) |
on Apr 11, 2005 at 14:37 UTC ( [id://446623]=note: print w/replies, xml ) | Need Help?? |
I'd say you'd have to use single quotes, e.g.: my macro this { 'self{$foo}' }I don't think rg0now's idea will work, because $foo would refer to some outer $foo. If my understanding is correct, you can do things like the following:
(Update: Doing s/macro/sub/ here would work just fine, too.) But, as rg0now said, that may be wrong, of course. --Ingo
In Section
Seekers of Perl Wisdom
|
|