note BrowserUk <blockquote><i>It would seem to me that most Unix commands return 0 when things are "OK." So.. if you want to accuse me of showing my C programming roots, I plead guily.</i></blockquote> <p>I understand the derivation, but still, the bland token <c>OK</c> has always suggested TRUE to me, and always will. <p>Hence my suggested alternative of <c>use constant NOERROR => 0;</c> which seems less likely to cause confusion. <p>That said, I wouldn't define a constant for 0 at all. It simply isn't necessary to compare against zero in Perl. The clearest idiom is simply:<code> my $errstr = $case ? $msg[ $case ] : ''; </code> <p>But I'd still prefer setting <c>$msg[ 0 ] == '';</c> and simply:<code> my $errstr = $msg[ $case ]; </code> <div class="pmsig"><div class="pmsig-171588"> <hr /> <font size=1 > <div>With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'</div> <div>Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.</div> <div>"Science is about questioning the status quo. Questioning authority". </div> <div>In the absence of evidence, opinion is indistinguishable from prejudice. </div> </font> </div></div> 1013548 1013586