in reply to Perl (specific) Algorithms?

There is also the 'Orcish Maneuver', named so because it uses an 'or-cache'. Have a look here or here or here.