Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • The latter, of course, is just plain ugly.

    What are you talking about? </lisp-guy>

    In other news, Randal found a nifty solution to a weird problem.

    That’s straight from Mastering Regular Expressions, basically. :-)

    • It might be from MRE (Meal, Ready to Eat?), but Randal did give credit specifically to Prolog :) In this case, it's a very common Prolog idiom to force something to fail in order to backtrack and cover all solutions:


      report :-
        print('People:'), nl,
        person(X), print(X), nl, # fail forces this to be resatisfied

      Thus learning Prolog well enough makes solutions like Randal's seem natural.