Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Do you know where your variables are?
 
PerlMonks  

Re: Check For Dupes In FLat DB Before Adding

by northwind (Hermit)
on Dec 14, 2005 at 13:13 UTC ( [id://516715]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Check For Dupes In FLat DB Before Adding

So what exactly is the file format of your flat file DB?  As in, is "everything on one line", or "everything in a set number of lines", or "variable records"?

In regards to reading in a file:

open(FILE_HANDLE, ">>", "$filename") || die "ACK, GASP: $error_message +\n"; my @data = <FILE_HANDLE>; chomp(@data); close FILE_HANDLE;
will slurp the entire flat file DB in and remove the newline character(s) from each line (depending on the size of the file, slurping entire files may not be a Good IdeaTM).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://516715]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.