BEGIN { $ENV{VAR_NAME} = "VAR_VALUE"; ...};...
Hi Ghoti,I am happy for your reply.I placed echo $PATH in shell script, ipl script and ran in command line.But i am getting same value in cmd and shell. Null value in ipl(even when running in ipl file in putty or running ipl in wft task).so i tried to set environmental variable in perl code, as you said and tried to run that in work flow but no use still facing same error /opt/IBM/AppScanSource/bin/appscansrccli: line 28: 15901 Segmentation fault "$(BINDIRECTORY)/cliloder".But its helping me a lot to learn.can you tell any other causes for this issue. So that it may help me to solve.
my ipl code......BEGIN{my $ecvalue=`echo $PATH`;log--->$ecvalue shows null.$ENV{'PATH'}="path that i got when ran echo $PATH in cmd";}......#ipl codeThis is the way that i tried to set the variables. Is it a right process?
foreach my $k (sort keys %ENV) { print "$k => '$ENV{$k}'\n"; # replace with logging routine as desired}
BEGIN { $ENV{ENV_NAME} = "HARD_CODED_ENV_VALUE";};