I have inherited a subscription based site that uses both php and perl/cgi for user management. I have a php script that will post to a cgi/perl script that searches for a specific username. The current perl script simply prints out the results. What do I add to the perl script so that it sends the result variable back to my php script?
The perl script is:
$name = `cat /path/to/my/list|grep -i "(results from form)"`;
$name =~ s/\n/<br>/ig;
What do I need to change the "print $name" so that the result is sent (GET is fine) to a php script? Something like in php: