in reply to javascript-perl interaction
Maybe hidden input field or cookie? Of course if you want interactive when use erroneousBollock suggestion.