in reply to Re^2: formatted hash problem
in thread formatted hash problem

Again, your question asking skills are leaving something to be desired. I don't know what the "seconds" field is. Copy the code above, put some data that does the wrong thing into the data block, and then tell us what the right thing would be.

One possibility if a field is not getting populated is related to my split expression. My regular expression /\s/ splits on exactly one white space character. If your data has multiple spaces separating two values, you will get empty elements. /\s+/ will match one-or-more white space characters (perlre) and may fix this.

Replies are listed 'Best First'.
Re^4: formatted hash problem
by Spooky (Beadle) on Feb 20, 2010 at 18:45 UTC
    ..yep, the "+" after the "s" did the trick. Incidentally, how should I have responded?
      For Re^4: formatted hash problem, a simple one line stating the solution is fine. It lets people know your issue was resolved and what resolved it. When posting a question, however, you want someone to be able to download a script as you've posted it, run it against data you've provided, and see the problem. If it is a syntax question, post some code that you'd think would work (and tell people it's not right). I have found that frequently I uncover my own problems in the process of posting questions for exactly these reasons.