Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: File I/O structure

by sundialsvc4 (Abbot)
on Jul 12, 2013 at 03:16 UTC ( #1043862=note: print w/replies, xml ) Need Help??

in reply to File I/O structure

I have had a lot of success with SQLite, which is (by careful and deliberate design ...) a public-domain SQL system which stores everything in one file and requires no server.   The very nice thing about it is that, well, “it’s a [self-describing(!)] random-access file,” and a whale of a lot more.   All wrapped-up in a very small, high-performance engine that runs everywhere and with every language (not just Perl).   Quite frankly, I don’t “roll my own random-access files” anymore.   I can’t justify the effort, nor the bugs that I can avoid.

There is only one caveat, but it is an important one:   use transactions.   SQLite is also designed for fail-safe situations, so it will re-read everything that it has just written, quite by-design, unless you are using transactions, which allows more-“lazy” writes.   But, hey, you get “a self-describing multi-user random-access file that is understandable everywhere,” with transactions!   Not bad.   Not bad at all.

Replies are listed 'Best First'.
Re^2: File I/O structure
by silverbullet (Initiate) on Jul 15, 2013 at 02:41 UTC
    Thank you for the suggestion.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1043862]
[Perl300]: I used sendmail before for a few times but read that is causes some security issues so trying something better/secure this time
[1nickt]: If you use a remote SMTP server there should be no local security issues. Your mail server probably wants an encrypted connection, so the message contents cannot be stolen.
[jedikaiti]: Greetings, Salutations, and all that Jazz
[Perl300]: ok, and for future if I want to use local box for something similar, then will Email::Sender:: Simple be a good choice?
[1nickt]: It's a framework that allows you to specify the Transport agent to whatever you want. You could even write your own.
[1nickt]: Perl300 More doc
[hippo]: In that case, use Net::SMTPS and also encrypt your content before you send it eg. with Crypt::GPG

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2017-10-17 16:03 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (234 votes). Check out past polls.