M
Michael Kiermaier
hello!
i am new to perl. i searched the online documentation for this
problem, but i didn't find an answer.
here is a part of my code:
[...]
use constant _GROUP => "gruppe";
[...]
if ($configLine =~ /^\s*_GROUP\s+(.+?)\s*$/) {
[...]
of couse in the regexp the character sequence _GROUP does not get
replaced, but i want that it is regarded as the name of the constant
and therefore replaced by "gruppe".
i hope that my post is understandable enough.
many thanks in advance,
~michael
i am new to perl. i searched the online documentation for this
problem, but i didn't find an answer.
here is a part of my code:
[...]
use constant _GROUP => "gruppe";
[...]
if ($configLine =~ /^\s*_GROUP\s+(.+?)\s*$/) {
[...]
of couse in the regexp the character sequence _GROUP does not get
replaced, but i want that it is regarded as the name of the constant
and therefore replaced by "gruppe".
i hope that my post is understandable enough.
many thanks in advance,
~michael