Skip to content

Instantly share code, notes, and snippets.

@djgoku
Last active October 21, 2015 03:39
Show Gist options
  • Save djgoku/46166d26f3dbbdc454d0 to your computer and use it in GitHub Desktop.
Save djgoku/46166d26f3dbbdc454d0 to your computer and use it in GitHub Desktop.
clean_up_pod.p6
use v6;
my @files <a b>;
for @files {
my $contents = $_.IO.slurp;
$contents.=subst(/\n.'# vim: expandtab shiftwidth=4 ft=perl6'/, '');
spurt $_, $contents;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment