in reply to can perl help me with secure PIN management via database?
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 |