Retrieving data from perl to a dynamic text field

Will someone kindly give me a good clue to achieving this…
Think i’ve tried as much as i know but doesn’t work
I valued a variable in the perlscript, something like
$response = “success.”;

tried to loop a loadvariable pointing to the .pl file hoping to assign $response to the dynamic textfield declared response but nothing shows. Can this be done or do i havta tap asp for this… i’m guessing my retrieval method / syntax is incorrect since i tried writing the result to a text file which works…

Will appreciate all input,
thank you.