git.shiar.nl
/
wormy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parse-wormedit: bytes declarable as non-capturing
[wormy.git]
/
Parse
/
Binary
/
Nested.pm
diff --git
a/Parse/Binary/Nested.pm
b/Parse/Binary/Nested.pm
index db5e2080eaec8187b65ae785b42b3a8175ca5a8c..e4cacc3b759e9eda84e26c73fad7cd80b58bf335 100644
(file)
--- a/
Parse/Binary/Nested.pm
+++ b/
Parse/Binary/Nested.pm
@@
-50,6
+50,9
@@
sub convert {
elsif ($template =~ /^Ca/) {
$data->[0] = unpack 'C/a', $data->[0];
}
elsif ($template =~ /^Ca/) {
$data->[0] = unpack 'C/a', $data->[0];
}
+ elsif ($template =~ /^(?:[xX]\d*)*$/) {
+ next; # no values
+ }
$res{$field} = shift @$data;
}
return \%res;
$res{$field} = shift @$data;
}
return \%res;