Last active
July 16, 2017 19:10
-
-
Save jreisinger/b15fe939f2f129b58a63b6d633bfa1fb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use v5.14; | |
use warnings; | |
my %funcs = ( | |
suberr => sub { return }, | |
subok => sub { return 1 }, | |
); | |
for ( keys %funcs ) { | |
say join ": ", $_, $funcs{$_}->() ? "ok" : "error"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment