Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Creating a new file in a directory ( Path::Tiny )

by Anonymous Monk
on Aug 21, 2015 at 07:28 UTC ( [id://1139381]=note: print w/replies, xml ) Need Help??


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 :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1139381]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-26 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found