From:                   [EMAIL PROTECTED]
> Can you please help.
> 
> When does Interpolation occur at Compile Time , Run Time or Both. So
> far I know on both, then why does the following not work. ( how can I
> get it to work ?)
> 
> $scripts = 'cd $acu_home/bin \n nohup ${srv}_ss $srv.ini >
> $acu_home/bin/$srv.out&';
> $acu_home = "/luke/u01/app/rdf/product/4.1/acumate";
> $srv = "edg";
> print("SCRIPT: $scripts \n");
> system("$scripts");

Of course on runtime.
So in your case when the value for $stripts is computed the $srv 
and $acu_home variables are not yet set. And so you do not get 
what you need.

You would not expect this

        #!perl
        $sum = $x + $y;
        $x = 1;
        $y = 2;
        print "Sum is $sum\n";

to print "Sum is 3" would you?

Resort the lines like this :

$acu_home = "/luke/u01/app/rdf/product/4.1/acumate";
$srv = "edg";
$scripts = 'cd $acu_home/bin \n nohup ${srv}_ss $srv.ini >
$acu_home/bin/$srv.out&';

Jenda

P.S.: Would it be possible to trim down the silly disclaimer in your 
messages to mailing list? If not it would be fine if you considered 
subscribing from an address that doesn't add this at all.

P.P.S.: This disclaimer obsession really drives me crazy. The 
world would be so much better place if it were not for the lawyers :-(

=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain
I can't find it.
                                        --- me

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to