in reply to Re: search and replace regex return value
in thread search and replace regex return value

The problem does not exist with perl version 5.24.1 and also the workaround

my $target = $CFG{target} ;

resolves the issue in version 5.22, so I have alternative ways to resolve my issue. Thanks for your help.