in reply to What are multiple $_[0] =~ operations doing?
So, you are substituting "%HTTP_HOST%" by the result of calling the "handleEnvVariable" function.
If you don't like it that way, you can always:
or (but be careful, it can not work in case there are other variables)$_[0] =~ s/%(HTTP_HOST|REMOTE_ADDR|REMOTE_PORT|REMOTE_USER)%/handleEnv +Variable($1)/ge;
$_[0] =~ s/%([A-Z_]+)%/handleEnvVariable($1)/ge;
Alberto Simões
|
|---|