I have a problem that is really basic, but I'm having a hard time solving it.
I am trying to search a given string for the character *.
I have an if statement that calls a function to do some processing if 1 or more *'s are present in a string.
This is my approach:
But, for some reason, this isn't doing what I want. Can "someMonk" please help me out?if ($a =~ /\*/) { # call some function } else { # do something else }
Thanks a bunch,
Tii
In reply to Matching * in a pattern by Tii
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |