I have a query on perl system command. I would like to learn from perl monks how to place variables inside system command ?
In the script below, program "phylip" generates two output files and asks user to name them. I want to name the first output file as "blah.txt" and second as "blah.xls".$filename ="blah.doc"; .... .... $filename =~ s/\.doc//; system 'echo "$filename.txt\n$filename.xls\n" | phylip';
(blah.doc is the input file, I use at the beginning of a long script)
when I run above script, "phylip" doesn't recongnize either of the filenames. Can anyone advise me, how to go about doing this ?
In reply to Re^6: How to execute external programs from perl script
by Anonymous Monk
in thread How to execute external programs from perl script
by chak9988
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |