|We don't bite newbies here... much|
eval string possibilitiesby erix (Vicar)
|on Nov 22, 2004 at 03:59 UTC||Need Help??|
erix has asked for the
wisdom of the Perl Monks concerning the following question:
Dear fellow monks,
Please consider the following:
I would like to ask a specific and a general question:
Specifically, I am interested in performance: if matching many patterns, how does qr// + while-loop perform, compared with an eval of a built string containing while-loop + same patterns 'hard-coded' (as in the above example).
And more generally: how do people use eval string? Are there cases that really need it? (but I would also like to invite the more strange uses.)
I do understand that it should only be used on trusted strings.