Re: can slurp do this?

Discussion in 'Perl' started by Jürgen Exner, Jul 16, 2008.

  1. No need for slurping in the whole file. If you know the set of all a, b,
    c, d, ... in advance then just go ahead and create the top row. Then
    read in the information for each user and print the row for him.
    If you don't know the set of all a, b, c, ... in advance then read the
    file twice: first pass just to determine the set of a, b, c, ... and the
    second pass as above.

    Jürgen Exner, Jul 16, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.