and $a would contain the number of *'s so you can call the function with it. you can still do$a = grep /\*/, $the_asterix_string;
since if there are no *'s, $a would be undef or 0. Doesnt matter which, if won't return true.if ($a) { : }
-Nimster
Freelance writer for GameSpy industries LTD. (www.gamespy.com)
In reply to Re: Matching * in a pattern
by Nimster
in thread Matching * in a pattern
by Tii
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |