I use
for stripping JavaScript comments text files. Sometimes, I get the error Use of uninitialized value in substitution iterator at .....
the variable
is read from file and as confirmed by
prior to the line in question,
is definitely initialised!
So what is wrong?
Code:
$stripped=~ s#/\*[^*]*\*+([^/*][^*]*\*+)*/|("(\\.|[^"\\])*"|'(\\.|[^'\\])*'|.[^/"'\\]*)#$2#gs;
for stripping JavaScript comments text files. Sometimes, I get the error Use of uninitialized value in substitution iterator at .....
the variable
Code:
$stripped
Code:
print $stripped;
Code:
$stripped
So what is wrong?