Skip to content

Instantly share code, notes, and snippets.

@blech
Created March 3, 2020 20:12
Show Gist options
  • Save blech/b1d1a4b392410178f1a59481b3a1a947 to your computer and use it in GitHub Desktop.
Save blech/b1d1a4b392410178f1a59481b3a1a947 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
use Path::Tiny;
my $path = pop @ARGV;
if (!$path) {
print "\nUsage: mkpath path/to/file.txt\n";
exit;
}
path($path)->touchpath;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment