Skip to content

Instantly share code, notes, and snippets.

@mpapec
Created September 5, 2014 13:13
Show Gist options
  • Save mpapec/e324dd31e3d55e646ff9 to your computer and use it in GitHub Desktop.
Save mpapec/e324dd31e3d55e646ff9 to your computer and use it in GitHub Desktop.
my $edit = sub {
my ($line, $eof) = @_;
if ($. %2){ chomp($line) } else { $line =~ s/^/ = / }
print $line;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment