in reply to Re: array split problems
in thread array split problems

That worked perfectly thanks very much. Can you tell me why the line I wrote wouldn't work?

Replies are listed 'Best First'.
Re: Re: Re: array split problems
by neuroball (Pilgrim) on Jan 20, 2004 at 17:29 UTC

    perldoc -f chomp returns:

    chomp VARIABLE chomp( LIST ) chomp This safer version of "chop" removes any trailing string that corresponds to the current value of $/ (also known as $INPUT_RECORD_SEPARATOR in the "English" module). It returns the total number of characters removed from all its arguments.

    Your code didn't work because of the following statement: It returns the total number of characters removed from all its arguments..

    /oliver/

Re:^3array split problems
by Roy Johnson (Monsignor) on Jan 20, 2004 at 17:29 UTC
    Because chomp() returns the characters removed, not the characters remaining.

    The PerlMonk tr/// Advocate