Dr. Ruud wrote:

> Because of RaiseError, that 'or die' is unreachable code

        That's good to know.  I wasn't aware of that.  I'm reading up on it 
now.  Thanks!


Gurpreet Singh wrote:

> Just use a boolean "read_Primary_Key" (default false) and then true after 
> reading the first line.

        Now why didn't I think of that! ;)  Of course - that makes sense.  The 
first time through the loop, $primary_key is undefined. So I added:

$primary_key = $key unless defined ($primary_key);

        This allowed me to get rid of the redundant $count, and to shrink the 
number of lines by four, as well.

Thanks,
Marc
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to