Perl Monk, Perl Meditation | |
PerlMonks |
Re: Parsing barewords as sub/method calls?by hdb (Monsignor) |
on Nov 23, 2013 at 18:01 UTC ( [id://1064060]=note: print w/replies, xml ) | Need Help?? |
This looks interesting but I do not fully understand. You do not want to pre-declare also not to pollute the callers naming space. Does this mean that for the following code
the first BLA should raise an error, whereas the second one would call AUTOLOAD? That looks difficult to achieve. I thought to move the pre-declaration into the package like this:
but that would pollute the callers space as well. More generally, how would one define such an internal DSL, so that code like within_myDSL { >>different rules here<< } is possible?
In Section
Seekers of Perl Wisdom
|
|