Just another Perl shrine | |
PerlMonks |
Re: Re: Spurious re 'eval'; warning ?by bsb (Priest) |
on Aug 24, 2003 at 12:58 UTC ( [id://286186]=note: print w/replies, xml ) | Need Help?? |
What are you trying to do with your code?
I'm just playing around. Returning a qr// regex is a work around. I read perlre and re, and I consider "(?{1})" a valid return value. You can use other strings without a problem: This snippet from perlre doesn't specify a regex ref or string (although it is pretty vague). The example which follows in the man page uses a recursive qr// definition (so does return a qr// object).
From perlre:
In Section
Seekers of Perl Wisdom
|
|