in reply to Creating a new file in a directory

Path::Tiny
$ perl -MPath::Tiny -e " path( q{goner/goner/goner/goner.txt} )->spew( +1234); " Error sysopen on 'goner/goner/goner/goner.txt37921829568512': No such +file or directory at -e line 1. $ perl -MPath::Tiny -e " path( q{goner/goner/goner/goner.txt} )->touch +path->spew(1234); " $ cat goner/goner/goner/goner.txt 1234 $ rm -rfv goner removed `goner/goner/goner/goner.txt' removed directory: `goner/goner/goner' removed directory: `goner/goner' removed directory: `goner'

Replies are listed 'Best First'.
Re^2: Creating a new file in a directory ( Path::Tiny )
by Monk::Thomas (Friar) on Aug 21, 2015 at 09:02 UTC

    Aran! Aran!

    Sorry. Could not resist. (It's an offtopic reference / joke. Goner Aran)

      Aran! Aran! Sorry. Could not resist. (It's an offtopic reference / joke. Goner Aran)

      Not very apt or funny :)