No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I was in a situation the other day where I just wanted to keep a count between iterations of a program.
Something like the auto-increment facility of a database, and I could use a database, but it seems like overkill. I'd have a table with one column with one INT in it. All I want to do is save 99 on a Monday, and when I run my program again on Tuesday, pick up the 99, increment it to 100 and save 100 back. What would monks do? Lock and read a simple text file with the digits in it? Use dbmopen()? Store the number using a module? ($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss') In reply to best way to keep a simple count? by Cody Pendant
|
|