I try to assign the matched result to another variable but instead the other variable gets the value 1 which means that there is match.
Here is the example:
my ($clientRoot) = $infoArray =~ /Client root:\s.*/;
$infoArray is something like this: Client root: some/path/in/here
Expected result for $clientRoot: