Use a piped open to feed the data to the python script:
my @data = genData(); my $pid = open OUT, '-|', 'python theScript.py' or die; print OUT $_ for @data; close OUT; waitpid $pid, 0; ## The python script has finished.
In reply to Re: how to run a python web application from within a perl script
by BrowserUk
in thread how to run a python web application from within a perl script
by BhariD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |