R
R Evans
Hello,
In a Perl script, I run a program, Program.pl, by using:
@output = `cat $file_name | Program.pl`;
However I want to run this program when the contents of the file named
$file_name are stored in a string variable called $file_contents, as I
don't have permission to store them in a file. So I want to capture
something like:
@output = `cat $file_contents | Program.pl`;
Does anyone know how this can be done?
Many thanks for your help,
Richard
In a Perl script, I run a program, Program.pl, by using:
@output = `cat $file_name | Program.pl`;
However I want to run this program when the contents of the file named
$file_name are stored in a string variable called $file_contents, as I
don't have permission to store them in a file. So I want to capture
something like:
@output = `cat $file_contents | Program.pl`;
Does anyone know how this can be done?
Many thanks for your help,
Richard