In all my years of using and loving (and abusing) the shell, I've never encountered apropos. I'm really amazed that something so fundamental has somehow been left out of the many unix/shell articles (such as this one)…
I probably should have replied to rtomayko's comment rather than your own. I'd edit the tree, but it's immutable!
Blocks are also available in Perl, in the form of anonymous subroutines. They follow Perlish conventions for argument handling (rather than having a neat inline syntax like Smalltalk or Ruby), but they're most…
Here's one more efficient way... use perl! #!/usr/bin/perl use Modern::Perl; use List::Util 'reduce'; sub cook { my ($i1, $i2, $f) = @_; say "get the $i1"; $f->($i1); $f->($i2); } cook "lobster", "water", sub {…
In all my years of using and loving (and abusing) the shell, I've never encountered apropos. I'm really amazed that something so fundamental has somehow been left out of the many unix/shell articles (such as this one)…
I probably should have replied to rtomayko's comment rather than your own. I'd edit the tree, but it's immutable!
Blocks are also available in Perl, in the form of anonymous subroutines. They follow Perlish conventions for argument handling (rather than having a neat inline syntax like Smalltalk or Ruby), but they're most…
Here's one more efficient way... use perl! #!/usr/bin/perl use Modern::Perl; use List::Util 'reduce'; sub cook { my ($i1, $i2, $f) = @_; say "get the $i1"; $f->($i1); $f->($i2); } cook "lobster", "water", sub {…