in reply to Re^2: interpolating preset strings in variable context (or something like that)
in thread interpolating preset strings in variable context (or something like that)
I would try to figure out what the JavaScript actually does before I'd try to write (or use) a general purpose JavaScript parser and interpreter. Most of the time, these type of JavaScript routines end up simply generating one URL or another, and the logic is easy enough to copy in Perl.