A
Aberrant
What I'm trying to do is take %%variable%% in a file and replace it
with data returned by the subroutine substitute(). The code I have
looks like this:
$data =~ s/%%([^%]*)%%/&substitute($1)/ge;
And it does exactly what I want, but it also fills up my error log
with this:
"Use of uninitialized value in substitution iterator"
Can someone shed some light on this? How can I get around the warning?
Or rather, why is it being generated and how can I do what I want and
make perl happy? Thanks,
Abe
with data returned by the subroutine substitute(). The code I have
looks like this:
$data =~ s/%%([^%]*)%%/&substitute($1)/ge;
And it does exactly what I want, but it also fills up my error log
with this:
"Use of uninitialized value in substitution iterator"
Can someone shed some light on this? How can I get around the warning?
Or rather, why is it being generated and how can I do what I want and
make perl happy? Thanks,
Abe