I am trying to write a program that has bool term as an input for example (1,0,1)+0,1+(1,0) this is my bool term now I need a program that can solve this and tell me at the end if itīs false or truee. the commas are the AND operator and the + are the OR operators. I've tried so many different ways but I just couldn't write a meaningful program in perl that can do this. I hope you guys can help me.

INFO.: I had an approach with for loop and i converted the string (my boolterm is saved as a string) into an array and had a for loop with an array.. but still i have no idea how I can get this done.Note that my bool term can also contain brackets.

I am a perl beginner and hope someone could help me approach this problem. Thank you very much.