I'm playing around with the \K construct during a substitution operation, but it appears that capture groups aren't available to the right side.
Code:
my $string = 'lowerupper';
$string =~ s/lower\K(\w+)/\U$1/;
print $string;
Output:
lowerupper
Expected Output:
lowerUPPER
Why is this / is it possible to achieve the above without capturing 'lower'.
Thanks,
Chris