I access a dbm file by tying it to an associative array (%database). One part of my code looks to see if a specific record exists:
$rec = $database{$key};
If there is no record by that $key, then $rec is assigned "" as expected. Unfortunately, this outputs an annoying error each time it occurs. (I use perl -w).
Any suggestions?
Mike.
$rec = $database{$key};
If there is no record by that $key, then $rec is assigned "" as expected. Unfortunately, this outputs an annoying error each time it occurs. (I use perl -w).
Any suggestions?
Mike.