I have the following perl script:
$myVariable = "some value";
//... some code ...
$myVariable =~ s/\+/ /g;
$myVariable =~s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/seg;
//.. some more code ...
Reading from perl documentation, I think that =~ operator returns a boolean value, namely true or false.
My question is: Does the above operations where $myVariable is involved affect its value, or not.
N.B. The $myVariable‘s value is set in my script to a string that is a result from the $_ variable’s split. I think that should not affect the behavior of that operation.
P.S. If you need more code from my script just let me now.
$myVariableis changed, but because you are doing substitutions (s///), not because the result of a match or substitution is a boolean;=~is not like=, it is like==. If you want the boolean result of the action, you need to assign it.