From: "Craig Sharp" <[EMAIL PROTECTED]>
> In a shell programming, I can run a script with a period-space in
> front of the script:
> 
> Eg:  . script_name.scr
> 
> This will cause the variables to be sourced to the parent process.  In
> other words, any variables that are created within the child process
> running the script become available to the parent process when the
> child process completes.  Without the period, the variables die with
> the child process.
> 
> If I use the system command:
> 
> Eg: system ". script_name.scr"
> 
> Will the variables be available to the perl script that called the
> system command?

No.

Print them out, use `` instead of system() and parse the script's 
output.

Jenda

=========== [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
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to