Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

($code or die): Re: a learning exercise - diary program

by $code or die (Deacon)
on Jan 27, 2001 at 07:44 UTC ( #54713=note: print w/replies, xml ) Need Help??

in reply to a learning exercise - diary program

Just a quick comment that's already been suggested...

If you can use a database interface, apart from making diary searches easier, and allowing your diary to grow without a memory overhead, etc, it will allow you not to worry about multiple users. As your code stands, it's fine for a sigle user, but you could have problems if more than one instance of the script runs at the same time. I.e. it could corrupt your text file. If you run a database, it will be much easier to insert\update new diary entries.

I know that using a database is scary at first, but once you try and find it works, you'll wonder how you managed with flat-file databases! There are some great nodes on this site that help with Database access, reply if you'd like me to mention some of my favourites.

Which reminds me - I need to update my home node with links. I'll do that this weekend!

$code or die
Using perl at
The Spiders Web
  • Comment on ($code or die): Re: a learning exercise - diary program

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://54713]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2018-04-19 19:44 GMT
Find Nodes?
    Voting Booth?