I am attempting to pass data from the output of a javascript form into a perl script through a web page. The web page will output the following into a browser:
from a cmd line I can run test.pl input1=2182366414 and the program works succcessfully. But I don't know how to accomodate for the "?" that is passed. If I add the "?" to my regular expression it fails. Any ideas?
#!c:\perl\bin\perl.exe -w
#test2.pl
chomp($output=$ARGV[0]);
$output =~ s/\input1=//;
print "Content-type:text/html\n\n";
print "<html>" ;
system("md c:\\$output");
print "you just created a directory named $output";
#print "Done" ;
print "</html>" ;
from a cmd line I can run test.pl input1=2182366414 and the program works succcessfully. But I don't know how to accomodate for the "?" that is passed. If I add the "?" to my regular expression it fails. Any ideas?
#!c:\perl\bin\perl.exe -w
#test2.pl
chomp($output=$ARGV[0]);
$output =~ s/\input1=//;
print "Content-type:text/html\n\n";
print "<html>" ;
system("md c:\\$output");
print "you just created a directory named $output";
#print "Done" ;
print "</html>" ;