|
From: Serge L. <fi...@in...> - 2005-11-04 15:01:07
|
Dear Heiko, Friday, November 4, 2005, 5:46:19 PM, you wrote: >>>> + if [ "$f" = "$s" ]; then >>>> + echo $fi >> $DL_DIR/tmp/perl-ext.tmp >>>> + else >>>> + if `eval test $s` ; then >>>> + echo $f >> $DL_DIR/tmp/perl-ext.tmp >>>> >> >>> Instead of doing the echo here and then parsing the file in the for >>> statement below, it would make sense to cimbine everything and compile >>> the module right here. >> There are 2 places for the compile code. Code doubling is bad form and >> therefore I should write a function... But in this case I have to save >> parameters ($1) from parent script. Or haven't? Am I right ? Could you >> please advise me a write way? > There's actually only 1 place for compiling the perl extensions: It was the one place . But wrote the code with 2 places (see echo $fi). And therefore exactly I use intermediate file. -- Best regards, Serge mailto:fi...@in... |