Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
using variables in regular expr replaceby b888 (Beadle) |
on Dec 02, 2004 at 17:41 UTC ( [id://411878]=perlquestion: print w/replies, xml ) | Need Help?? |
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
|
|