Re: evaluating a pattern before matching

2001-09-20 Thread Michael Fowler
On Thu, Sep 20, 2001 at 05:22:14PM +0530, Surarchitha Kumar Kudikyala wrote: > I have a doubt whether it is possible to evaluate a pattern before using > it in the pattern matching. > > For eg > > string =~ /$pattern/ > > here $pattern is a pattern string contains some perl commands like > len

evaluating a pattern before matching

2001-09-20 Thread Surarchitha Kumar Kudikyala
Hi   I have a doubt whether it is possible to evaluate a pattern before using it in the pattern matching.    For eg   string =~  /$pattern/   here $pattern is a pattern string contains some perl commands like lenght(str) etc. I want these commands to be evaluated, and the result of this evalu