in reply to Re: Is this expected behavior for chomp/split...?!
in thread Is this expected behavior for chomp/split...?!

I don't know the exact number of fields, and I do not want the newline in the last element.

So I decided to chomp _after_ the split:
@x = split(...) chomp $x[-1];
Thanks!

Krambambuli
---