Skip to content

Instantly share code, notes, and snippets.

@kyclark
Created December 8, 2016 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyclark/8c281911e977c21d1a03bddca8059ac5 to your computer and use it in GitHub Desktop.
Save kyclark/8c281911e977c21d1a03bddca8059ac5 to your computer and use it in GitHub Desktop.
my $out-file = $out || do {
my $ext = $in.IO.extension;
my $basename = $in.IO.basename.subst(/'.' $ext $/, '');
$*SPEC.catfile($in.IO.dirname, $basename ~ '.2.' ~ $ext);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment