Mattk470 has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to configure a wrapper around a program called Clustalw.exe and here is the directions.. where do i enter the environmental variable in windows on perl 5.8?

# You will need to enable Clustalw to find the clustalw program. This
# can be done in (at least) two ways:
# # 1. define an environmental variable CLUSTALDIR:
# export CLUSTALDIR=/home/peter/clustalw1.8
# # 2. include a definition of an environmental variable
CLUSTALDIR in
# every script that will use Clustal.pm.
# $ENV{CLUSTALDIR} = '/home/peter/clustalw1.8/';

Replies are listed 'Best First'.
Re: environmental variables in windows
by eieio (Pilgrim) on Mar 15, 2005 at 22:03 UTC
    Environment variables can be set, in Windows XP, via the "System" Control Panel, "Advanced" tab, "Environment Variables" button.

    In addition, you can set environment variables in your command shell:

    set CLUSTALDIR=c:\clustalw1.8\
    

    Finally, you can set environment variables in your script as stated in your question.

      Note: If you set the environment variable in the shell, it will only be readable by that shell process, its child processes, its children's child processes, etc.