@reducedProtein = initializeStructure ##some operations(\@residueArray,\@secondaryStructureArray); if ($ERRORCHECK ==1) #if global errorcheck is 1 {$response = confirmExit(@ERRORTYPE);} #call error function if($response==1){ simulate(@reducedProtein);} #if not, go to calculations etc