S
Shai
Hi,
I'm running on an array of strings with a foreach loop.
I want to stop the loop when I find the string: "item(s)" - but it
looks like I have problems with defining the if condition.
I tried:
if ($str=~"item(s)") {
last;
}
But it seems to have problems. if I remove the "(s)" it works fine but
I need to find a unique string which contains exactly this: "item(s)".
Any idea ?!?!?
Thanks,
Shai.
I'm running on an array of strings with a foreach loop.
I want to stop the loop when I find the string: "item(s)" - but it
looks like I have problems with defining the if condition.
I tried:
if ($str=~"item(s)") {
last;
}
But it seems to have problems. if I remove the "(s)" it works fine but
I need to find a unique string which contains exactly this: "item(s)".
Any idea ?!?!?
Thanks,
Shai.