I need to run perl script that has multiple file handles and user data through tcl script and generate resultant output file.
tcl script (test.tcl) has following line and expects resultant output file of perl script to be generated in folder1.
exec perl \...\folder1\test.pl
test.pl code is as follows.
print "Enter user data1: ";
my $data1 = <STDIN>;
print "Enter user data2: ";
my $data2 = <STDIN>;
my $sum = $data1 + $data2;
This is a portion of code and the varaible "sum" will be used in furtehr code. Finally, perl script will generate a output text file. How to use tcl interpreter to extract the user data for perl script and generate output file??
\fand\tin your code will be a formfeed and a tab character respecitvely