]> git.vpit.fr Git - perl/modules/Sub-Nary.git/blobdiff - lib/Sub/Nary.pm
Add support and tests for eval { }
[perl/modules/Sub-Nary.git] / lib / Sub / Nary.pm
index f2b53439d92c0bf7fbff1398c0ab7651dc4eaf38..c44a10e9bf8fb6d73541a8cbb48829b396192403 100644 (file)
@@ -279,7 +279,7 @@ sub expect_any {
 
  return ($self->expect_list($op))[0] => 1 if name($op) eq 'return';
 
- if (class($op) eq 'LOGOP') {
+ if (class($op) eq 'LOGOP' and not null $op->first) {
   my @res;
   my ($p, $r);