Skip to content

Instantly share code, notes, and snippets.

View rsimoes's full-sized avatar

Richard Simões rsimoes

  • Center for Technology and Civic Life
  • Austin, Texas
View GitHub Profile
@rsimoes
rsimoes / mymap.pl
Created December 27, 2011 01:51 — forked from gatlin/mymap.pl
Functional definition of map in Perl
#!/usr/bin/env perl
use strict;
use warnings;
sub myMap(&@) {
!wantarray && @_ - 1 || @_ > 1 && (
do {
local $_ = $_[1];
$_[0]->();