in reply to can perl help me with secure PIN management via database?

Untested code, derived from the DB_File::Lock manpage.
use DB_File::Lock; tie(%db_hash, 'DB_File::Lock', "/path/to/my/database", O_RDWR, 0600, +$DB_HASH, 'write') or die; 1 while $db_hash{my $num = get_random_number()}; $db_hash{$num}++; ... do something with $num ... untie(%db_hash);

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: •Re: Any possible heeeelp please??
by jcsimba (Initiate) on Jan 30, 2003 at 17:22 UTC
    Thanks for the code snippet...unfortunately I'm a very green novice at this and whilst I'm not looking for total 'freebies' here I really don't know how to implement this into a script....any explanation would be most helpful! Also with the database file too (I know how to create a 'csv' file) but apart from that then...erh um!