@- and @+ are arrays, as documented in perlvar. Maybe you wanted to actually capture things?
My approach would be to also capture the nonce value in the same regular expression match:
if( $message =~ /nonce\s+=\s+"([^"]+)"/ ){ my $nonce= $1; print "Found nonce: $nonce\n"; } else { die "No nonce found in message:" . $message; };
In reply to Re: extract pattern from large blob of text
by Corion
in thread extract pattern from large blob of text
by littleperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |