Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$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 ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Query on Perl system command
by philipbailey (Curate) on Mar 04, 2011 at 12:48 UTC | |
by Anonymous Monk on Mar 04, 2011 at 14:22 UTC | |
by Eliya (Vicar) on Mar 04, 2011 at 15:48 UTC | |
by Anonymous Monk on Mar 04, 2011 at 18:35 UTC | |
|
Re: Query on Perl system command
by Anonymous Monk on Mar 04, 2011 at 12:42 UTC | |
by Anonymous Monk on Mar 04, 2011 at 13:24 UTC | |
by ww (Archbishop) on Mar 04, 2011 at 13:42 UTC | |
by Anonymous Monk on Mar 04, 2011 at 13:46 UTC | |
by Anonymous Monk on Mar 04, 2011 at 13:58 UTC | |
by Anonymous Monk on Mar 04, 2011 at 18:41 UTC | |
|
Re: Query on Perl system command
by TomDLux (Vicar) on Mar 05, 2011 at 00:26 UTC |