P
phrankster
I'm trying to figure this out. I have a XML file that is being read in
that contains %%VARIABLE syntax. What I need to be able to accomplish
is replacing %%VARIABLE with $VARIABLE.
For example:
$VARIABLE = "hello world.";
$line = "%%VARIABLE this is a test."
$line =~ s/(\%\%\w+)/$1/gee;
This does not seem to work. Any ideas?
that contains %%VARIABLE syntax. What I need to be able to accomplish
is replacing %%VARIABLE with $VARIABLE.
For example:
$VARIABLE = "hello world.";
$line = "%%VARIABLE this is a test."
$line =~ s/(\%\%\w+)/$1/gee;
This does not seem to work. Any ideas?