i've got a .txt of 20,000 unique lines.
each line is 8 characters and a newline -- the file is a list of one time keys
i thought that generating this list and grabbing a line at a time would be more efficient than generating a pass on the fly and testing it against a db of already used passes
the problem i've run into -- is how in the hell do i efficiently grab a value off the list and delete it?
do i loop through and truncate? do i read backwords and truncate? as it stands, the file is 150k -- and is gonna be accessed by a .cgi script. i'd like to keep as much of it out of memory, but have never really used file functions in perl and don't know where to start. i searched the archives, but couldn't find anything i felt applicable.