> >I have to source a KORN-Shell Script, so that the environment-Variables
> >created by
> >KORN-Shell is available in my PERL-Script. Ho do I that ????
> 
> 
> The hash %ENV stores the environment variables.
> 
> if ( $ENV{HOME} =~ /dave/ )
> {
>      print "Good morning Dave.";
> }
> 
> http://www.perldoc.com/perl5.6/pod/perlvar.html
> 
        [>>]  no that's not what I need.
        I have to source the KORN-Shell Script during executing my
PERL-Script.

        example:
        #!/usr/bin/perl
        print $ENV{XYZ}           ### nothing in it
        #
        # now I have to source the KORN-SHELL Script
        # but I don't no
        . kornshel.sh    ## ????

        print $ENV{XYZ}          ##  now it Prints my environment


        Greetings    Peter

Reply via email to