Fruits{ Apple Mango Grape Watermelon }
My another file looks like thisFruit{ Apple }
My code works for both of the files here thing is we shouldn't use .* that affects my other code. so can anyone help me to solve this? logical part for this is below $_=~ m/^\s*Fruits\s*\{\s*(.*)?\s*\}/; Thing is I should not use .* so is there any other way to match that?, If so please help me. Thank you.In reply to Pattern Match by Nansh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |