Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
flatwhatson
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
flatwhatson
15y ago
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) that I've read. Anyh
2.
▲
by
flatwhatson
15y ago
I probably should have replied to rtomayko's comment rather than your own. I'd edit the tree, but it's immutable!
3.
▲
by
flatwhatson
15y ago
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 definitely the same thing!
4.
▲
by
flatwhatson
15y ago
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