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

split(/pat/, $s, -1) is the same as split(/pat/, $s) except trailing fields aren't discarded.

Replies are listed 'Best First'.
Re^4: Is this expected behavior for chomp/split...?!
by Krambambuli (Curate) on May 21, 2009 at 14:19 UTC
    Ah, great! Thanks, that's something I didn't actually realize as such from the manpage.

    Krambambuli
    ---