The stupid question is the question not asked | |
PerlMonks |
Re: Re: Re: Re: Re: conditional match in regexby jryan (Vicar) |
on Nov 06, 2002 at 08:09 UTC ( [id://210682]=note: print w/replies, xml ) | Need Help?? |
Actually, $1 = type if the type is $, @, %, or *; however, in the <name> case, the only way to check its type is by nested conditionals outside the regex; something like:
Which, IMHO, is a huge pain in the behind compared to a single if-elsif chain. Why do more work than you have to?
In Section
Seekers of Perl Wisdom
|
|