in reply to Re:{2} Output Separators (Was: changing DB delimiters)
in thread changing DB delimiters

So it makes no sense to set $, and $\ to the same value.

Actually, it does. It makes no sense to not set it to the same value, unless you take care of those things elsewhere. Remember that all the records are collected in a single array, and there's only one print statement, printing out the entire database. Not setting $\ equal to $, makes that your last record has a different format than the others.

-- Abigail

  • Comment on Re: Output Separators (Was: changing DB delimiters)

Replies are listed 'Best First'.
Re:{4} Output Separators (Was: changing DB delimiters)
by jeroenes (Priest) on Jun 21, 2001 at 01:26 UTC
    It's becoming prettu much a private conversation methinks ;-}.

    I personnally wouldn't put a record separator after the last record. So in this case I would leave $\ alone.

    I think $\ is handy in case you want to loop over the records, using to print to write it. Actually I consider using it more often, as there is an endless number of "\n"s in the average reporting script.

      Whether you would put a record separator after the last record isn't very relevant for this particular case, as it is putting one there.

      Just because you fancy data formats with needless exceptions (handy if you are going to append records....) doesn't mean it's fine to change the data format at hand - without informing the reader about it.

      -- Abigail