in reply to Having an issue with -F

I don't know why the first few cases are messed up. The last case is correct, though. You asked it to split the string on the delimiter 'monkey'. That means the first part is "my " and the second part is "\n".

Try splitting on the delimiter ' '. You also might want to chomp somewhere in there. (I don't remember if chomping is done for you with some cmd-line switch.) :-)

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Replies are listed 'Best First'.
Re: Re: Having an issue with -F
by Pug (Monk) on Feb 19, 2003 at 23:41 UTC
    Sorry I thought I made it clear. The last case is exectly what I am looking for.
    --
    Pug