Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Yet another config file editing programme : Tell me how to make it better !

by tybalt89 (Monsignor)
on Sep 03, 2021 at 09:32 UTC ( [id://11136403]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Yet another config file editing programme : Tell me how to make it better !
in thread Yet another config file editing programme : Tell me how to make it better !

See ->spew (and ->edit and ->edit_lines) in Path::Tiny

  • Comment on Re^3: Yet another config file editing programme : Tell me how to make it better !

Replies are listed 'Best First'.
Re^4: Yet another config file editing programme : Tell me how to make it better !
by eyepopslikeamosquito (Archbishop) on Sep 03, 2021 at 10:09 UTC

    From Path::Tiny's doco of its excellently named spew method: "The file is written to a temporary file in the same directory, then renamed over the original.". Hey, xdg stole my idea! Seriously, it looks like an excellent module, I should start using it ... especially given my old golfing buddy endorses it. :)

Re^4: Yet another config file editing programme : Tell me how to make it better !
by dazz (Beadle) on Sep 04, 2021 at 04:12 UTC
    Hi
    I am going to use Path::Tiny.

    Dazz

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-19 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found