We don't bite newbies here... much | |
PerlMonks |
Re: functions inside patternsby danger (Priest) |
on Dec 20, 2001 at 10:48 UTC ( [id://133419]=note: print w/replies, xml ) | Need Help?? |
The pattern is given double-quotish interpolation (unless single quotes are the delimiter), so you can interpolate functions in a pattern the same as you would in a double quoted string --- ie, as per this faq. For example:
However, while this answers your question (I think), it isn't necessarily the best thing to be doing (and be careful with context).
In Section
Seekers of Perl Wisdom
|
|