Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Undo monad for permission changes

by ghenry (Vicar)
on May 02, 2006 at 09:12 UTC ( [id://546846]=perlmeditation: print w/replies, xml ) Need Help??

Just thinking if this is a good idea or not.

I am implementing a Command Line tool called create_dovecot_shares, to help in creating Dovecot Shared Folders, which will create lots of symlinks in a Maildir and change the permissions of lots of folders/files.

What I am planning to do is use Storable to save all the changes I have made via a HoH, with a history of 10 runs.

With the --restore option, it will rollback the changes, e.g. --restore 5, which put the perms back to 5 runs ago.

Is this a sane thing to do I wonder?

Gavin.

Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a yourname@perl.me.uk? Just ask!!!

Replies are listed 'Best First'.
Re: Undo monad for permission changes
by jdporter (Paladin) on May 02, 2006 at 14:52 UTC

    Sounds great, from a user perspective.

    I suspect you'll go insane during the implementation, however. ;-)

    We're building the house of the future together.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2025-11-18 04:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (72 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.