In regard to the commented out locking codes,, I have simply commented them and parlayed taking care of them proper. They are just reminders, sitting there until I do something about them. I'll comment them out,, for now.
Good programming is a matter of developing the proper habits. I read the rant on prototypes (T. Christiansen I'll bet.)
I decided to use them to force a habit, after having problems passing a hash or an array to a subroutine. I learned that it was necessary to use references to pass either a hash or an array. So I got into the habit of using the prototype to remind myself to dereference the passed reference in a method I was writing.
As for using DB_File, I am big on creating my own simple methods to do simple things. I get a little satisfaction seeing my methods work without taint-checking and error-checking perform their tasks reliably. Now I am in the process of adding a little error-checking to some of my methods.
I created alot of things. Its a battle to get them all cleaned up. Recently i solved a problem that was caused by blessing an object's methods into the calling object without intent. So now I am changing the way my objects are instantiated, generally so that the methods are not inherited. Until I need to actually intend to create an entire package using inherited objects, I'll just get into the habit of declaring my packages all one way.
As for the prototypes, I'll turn strict on to see what happens. I'll have to think overnight about changing a habit that is working.
Basically I never pass an array or hash except by references. And I always use the prototypes to remind myself to dereference them. I establish the prototypes in the topline of the method before doing anything else. Its a habit that works for me.
If I was working with anyone who simply passed arrays not as references, we would not get along. House rules are house rules.
We'll try strict in Lady /TM soon. I need to get my habits tuned properly.
Thanks,,

In reply to Re: Re (tilly) 3: Lady_TM by Steeeeeve
in thread Lady_TM by Steeeeeve

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.