|
|
| Think about Loose Coupling | |
| PerlMonks |
using variables in regular expr replaceby b888 (Beadle) |
| on Dec 02, 2004 at 12:41 UTC ( [id://411878]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.b888 has asked for the wisdom of the Perl Monks concerning the following question: Gretting all. I trued to use variables in s/// and met following problem: perl interpreter tries to use these variables' values as reg expessions. How can i ommit this? In general algorythm looks like
And get Invalid [] range "8-4" in regex; marked by <-- HERE in m/[img-smile "58-4 <-- HERE 1..." P.S. I can't use ' instead of " because of algorytm specific.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||