in reply to Matching * in a pattern
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Matching * in a pattern
by mwp (Hermit) on Jul 26, 2000 at 09:56 UTC |