named capture not working

Tags:

#1 dlang

$message =~ /(?<timestamp>\d+/\d+.\d+ )/s; $ts=$timestamp; $ts2=$1;

$ts2 has the right info, $ts=""

version nxlog-ce-2.10.2150

#2 manuel.munozDeactivated Nxlog ✓
#1 dlang
$message =~ /(?<timestamp>\d+/\d+.\d+ )/s; $ts=$timestamp; $ts2=$1; $ts2 has the right info, $ts="" version nxlog-ce-2.10.2150

David,

$1 contains what is captured between parenthesis.