]> git.vpit.fr Git - perl/modules/with.git/blobdiff - samples/funcs.pl
Importing with-0.02.tar.gz
[perl/modules/with.git] / samples / funcs.pl
index 5bcfeb9005dfdd1cb57d3f3136360b3a5b8b5091..94a414738c3a579ac7bef09c56f3e41a5367b8c4 100755 (executable)
@@ -11,7 +11,7 @@ die "no functions" unless $f;
 my @f = $f =~ /C<([^<>]+)>/g;
 my %dup;
 @f = sort
-      grep { eval { () = prototype "CORE::$_" }; !$@ }
+      grep { eval { () = prototype "CORE::$_"; 1 } }
        grep !$dup{$_}++, @f;
 my $c = 10;
 my $base = "my \@core = qw/";
@@ -31,6 +31,7 @@ for (@f) {
  } else {
   $l = length($base) - 1;
   $out .= "\n" . (' ' x $l);
+  redo;
  }
 }
 $out .= "/;\n";