in reply to Re^2: print to output problem
in thread print to output problem
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.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: print to output problem
by Anonymous Monk on Jul 07, 2004 at 16:42 UTC | |
by Joost (Canon) on Jul 07, 2004 at 16:47 UTC |