in reply to I'm struggling with a function, and hoping for some insight -- not strictly Perl
JavaScript logic is always hard to follow because it usually doesn't have comments or many blank lines ... even when it isn't "min-ized." Sometimes the logic is obfuscatory, maybe because someone thought it was faster and maybe it was. If there are particular portions of the logic that you're looking at -- say, regexes, or "each()" -- these would certainly qualify as legitimate Perl-ish questions and we can help. Target your questions . . .