Hey, super reply, jwkrahn. Thanks for the critique--seriously. I like having the opportunity to improve my style a bit, which is why I come here.

In answer to your questions:

1) I break out my code with subroutines simply for the sake of readability and organization. When I sit down to code, I write a simple block of steps in plain English as to what i'd like to do. From there, I build out the steps in code. If it turns out that over the course of hashing the code out, one of those routines needs to be called repeatedly, then i'm already there. :)

2) My understanding is that if I were to supply a single whitespace in the split call WITHOUT first boiling out the instances of >1 consecutive whitespaces, I may end up with an array filled with things like " foo" and "bar ", not "foo" and "bar". My goal there was to have an array filled with nothing but values of importance, not interspersed with values of no importance (whitespaces).

3) You are correct, I am doing a numerical compare on a string, and an exists call would suffice. This is just shorthand on my part. This way, I don't need to distinguish between numerical and non-numerical comparrisons in my code. Helps third-party readability too, I suppose.

4) I had derived "$lastValidBackupTime" using a different method earlier. The regex to deflate the string is a holdover from that method, and superfluous.

5) My goal there (if I remember correctly) was to break out a string containing a timestamp to something I could format neatly at will. See #3 above.

Thanks again for the writeup!

In reply to Re^2: Failboat -- An Emotionally Disturbed Tool For Checking NetBackup Client Coverage by Anonymous Monk
in thread Failboat -- An Emotionally Disturbed Tool For Checking NetBackup Client Coverage by bpoag

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.