Perl Monk, Perl Meditation | |
PerlMonks |
Re: Re: Substituting tokens into configuration valuesby Jenda (Abbot) |
on Mar 20, 2003 at 21:34 UTC ( [id://244732]=note: print w/replies, xml ) | Need Help?? |
I would suggest one little change to the regexp: This way it should be quicker since it does not force Perl to backtrack after it slurps up the whole general-scheduledb. Of course it's not entirely equivalent. If your INI contained %foo-bar-baz%, then your regexp would match it like %(foo-bar)-(baz)% and mine as %(foo)-(bar-baz)%. I don't think it matters. Jenda
In Section
Seekers of Perl Wisdom
|
|