Skip to content

Instantly share code, notes, and snippets.

@bellydrum
Last active September 5, 2019 21:47
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 bellydrum/cd5931c76429bfdf5f5b5dac4da1fbc8 to your computer and use it in GitHub Desktop.
Save bellydrum/cd5931c76429bfdf5f5b5dac4da1fbc8 to your computer and use it in GitHub Desktop.
Just a quick logjob
# TODO -- delete when done using
use Path::Tiny;
my $dir = path("/home/dmaness");
my $file = $dir->child(".test_file");
# TODO -- delete when done using
# append to existing log -- no need to close
$file->append( "write stuff here!" );
@bellydrum
Copy link
Author

bellydrum commented Aug 6, 2019

I kept having to look up the exact way to write a file with Path::Tiny so I made a gist because I'm lazy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment