Hello guys and gals:
I looked up EVAL and search and replace to get this done but cant seem to find the answer im looking for. Its possible that i wasnt clear on what im trying to accomplish.
I have a text file, here is an example:
Text file:
$tester_name you have $no_of_questions remaining.
end of text file
This text file is read in to my perl script as @questions_remaining.
Heres what im looking for, when i print @questions_remaining, it prints to my HTML page as:
$tester_name you have $no_of_questions remaining.
What perl function could i wuse to change the variables IE $tester_name and $no_of_questions to the actual variable withing the script before printing to HTML?
Please dont tell me exactly (If at all possible) what the script would look like, rather point me in the right direction.
Thanks again!
- scott
I looked up EVAL and search and replace to get this done but cant seem to find the answer im looking for. Its possible that i wasnt clear on what im trying to accomplish.
I have a text file, here is an example:
Text file:
$tester_name you have $no_of_questions remaining.
end of text file
This text file is read in to my perl script as @questions_remaining.
Heres what im looking for, when i print @questions_remaining, it prints to my HTML page as:
$tester_name you have $no_of_questions remaining.
What perl function could i wuse to change the variables IE $tester_name and $no_of_questions to the actual variable withing the script before printing to HTML?
Please dont tell me exactly (If at all possible) what the script would look like, rather point me in the right direction.
Thanks again!
- scott