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
// Here's a simple lambda combinator; it'll turn the function passed in | |
// into a function which, when called, returns a recursible copy of itself. | |
function y_combinator(curried) { | |
return function(f1){ | |
return curried(function () { f1(f1)(arguments) }); | |
}(function (f2) { | |
return curried(function () { f2(f2)(arguments) }); | |
}); | |
} |
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/env perl | |
use strict; | |
use warnings; | |
use Want qw(rreturn); | |
use Test::Resub qw(resub); | |
BEGIN { *CORE::GLOBAL::die = sub { CORE::die(@_) } } | |
use Data::Dumper; |
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
# this is for Perl v5.10.1 | |
# | |
($$$$$) | |
msgrcv | |
($$$$) | |
semctl | |
shmread | |
shmwrite |
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/env perl | |
use strict; | |
use warnings; | |
use Carp qw(cluck); | |
use autodie ':all'; | |
use Getopt::Long 2.33 qw(:config auto_help); | |
use File::Find::Rule; | |
use File::Basename 'basename'; |
NewerOlder