Menu
Hi.
I’m using Perl and JavaScript into a script.
I have this JavaScript function inside a Perl script:
print “function confirm(data)n”;
print “{n”;
print ” var erase=confirm(“Do you really want to erase ALL contents of this session: “+data+”?”);n”;
print ” if (erase)n”;
print ” {n”;
$job=data; <—- I hope it were that simple!!!!
print “}n”;
print “}n”;
I need to assign JavaScript variable data’s value to a Perl variable called $job in order to use it later.
Any ideas?
I’ll appreciate any help given.
Thanks in advance
Freddy A. Rojas P.