Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

($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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2015-07-29 21:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls