BEGIN { $ENV{CLUSTALDIR} = 'C:/path/to/clustalw1.8/'; } #### my $commandstring = $self->executable." $command"." $instring". " -output=$output". " $param_string"; $self->debug( "clustal command = $commandstring"); my $status = system($commandstring); $self->throw( "Clustalw call ($commandstring) crashed: $? \n") unless $status==0; #### sub program_dir { return Bio::Root::IO->catfile($ENV{CLUSTALDIR}) if $ENV{CLUSTALDIR}; } #### # 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/';