in reply to Re: print to output problem
in thread print to output problem

adding one value to the end of the array - this is why i included just after the while(<FILE>) empty the array i am pushing onto?

Replies are listed 'Best First'.
Re^3: print to output problem
by Joost (Canon) on Jul 07, 2004 at 16:34 UTC
    I think you'll find that # starts a comment. so that line doesn't do anything.

    Also, generally people will tell you to use strict; and use warnings; at the top of your code. which might give you some interesting hints.

    update: I don't think you really understand split either. type perldoc -f split, especially this section:

    In scalar context, returns the number of fields found a +nd splits into the @_ array. Use of split in scalar conte +xt is deprecated, however, because it clobbers your subroutin +e argu- ments. If EXPR is omitted, splits the $_ string. If PATTERN i +s also omitted, splits on whitespace (after skipping any leadi +ng whitespace). Anything matching PATTERN is taken to be +a delim- iter separating the fields. (Note that the delimiter m +ay be longer than one character.)
      see first comment regarding @outLines
        What does that comment mean? Did you copy and paste your actual code and output, or are you typing this from memory? Did you actually click the link I provided in my first reply, and READ THE **** POST IT REFERS TO? It's quite tiring to try to answer questions that span 5 seperate posts (and probably more in another thread).

        And we still don't know what that code is supposed to do.

        Joost.