http://www.perlmonks.org?node_id=165681


in reply to Re: Re: Backtracking.pm
in thread Backtracking.pm

Yeah. This one has bothered me, too. I suppose you could do something like this (untested):
sub is(&) { return $_[0] } sub goal { ... } # ... goal 'foo' is { ... }
but it's not quite as nice. Option 2: write a source filter that takes
goal mygoal
and replaces it with
goal 'mygoal', sub
That might be a good way to go.

/s