in reply to Re^3: split and capture some of the separators
in thread split and capture some of the separators

If $_ is undef, you get the:
Use of uninitialized value...
  • Comment on Re^4: split and capture some of the separators

Replies are listed 'Best First'.
Re^5: split and capture some of the separators
by BrowserUk (Patriarch) on Oct 08, 2004 at 01:16 UTC

    Okay, same point though.

    grep{ defined && length } split ...;

    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon