Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • How is this different from a SQL sequence?
    • by rhesa (5696) on 2005.04.14 4:50 (#39676) Journal
      I suppose it could be used for sequences in databases that do not have those (such as Mysql, SQLLite and SQL Server), but the main difference is that this module doesn't care if you decrement a counter.

      The fact that it uses a database for storage, doesn't mean that it can only be used in a database context. You can count things, that's it.

      It's meant as a (drop in) replacement of File::CounterFile. My module gives you an (well, almost) identical API, but the storage is centralised. That means you can access the same counter from multiple hosts (provided your database is configured to allow that, of course).