|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: ref() and Regexpby brian_d_foy (Abbot) |
| on Jan 31, 2008 at 18:27 UTC ( #665415=note: print w/ replies, xml ) | Need Help?? |
|
You shouldn't ever have to think about what string ref() returns. By comparing it to a prototype of the same thing, you insulate yourself from version changes and thinkos (like me forgetting if it's REGEX, REGEXP, Regex, or Regexp):
Or, hide that in a subroutine is_regex() or something similar.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||