<?xml version="1.0" encoding="windows-1252"?>
<node id="284537" title="Re: DBI recipes" created="2003-08-18 06:46:58" updated="2005-07-27 11:54:02">
<type id="11">
note</type>
<author id="169744">
Abigail-II</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;em&gt;
Error checking is an idiom in itself.
&lt;/em&gt;&lt;/blockquote&gt;
&lt;p&gt;
Is it? If you were to discuss idiom for reading in a
file line-by-line, would you present something like:
&lt;p&gt;
&lt;code&gt;
    open my $fh, "/path/to/file";
    while (&lt;$fh&gt;) {
        chomp;
        ...
    }
&lt;/code&gt;
&lt;p&gt;
and dismiss the checking of the return value of &lt;tt&gt;open&lt;/tt&gt;
"it being an idiom in itself"?  Error checking should be
&lt;em&gt;part&lt;/em&gt; of the idiom, and not something you bolt on
later, when you are more experienced.
&lt;p&gt;
Abigail&lt;br&gt;
--&lt;br&gt;
Now that you have passed your driving test, let me introduce 
you to the function of safety belts.</field>
<field name="root_node">
284436</field>
<field name="parent_node">
284521</field>
</data>
</node>
