in reply to another split question

perldoc -f split
If the PATTERN contains parentheses, additional list eleme +nts are created from each matching substring in the delimiter. split(/([,-])/, "1-10,20", 3); produces the list value (1, '-', 10, ',', 20)
How to RTFM

Replies are listed 'Best First'.
Re^2: another split question
by blazar (Canon) on Sep 05, 2005 at 13:24 UTC
    This is not exactly what the OP asked for. Of course it may be a starting point to achieve that based on the gathered data. But that would be more complex than is needed IMHO. ysth's reply comes closer to what he (the OP) really wants.
How to LTFM...
by polettix (Vicar) on Sep 05, 2005 at 12:45 UTC
    Just a suggestion... where L stands for "Link" ;)
    [doc://split]
    produces split.

    Flavio
    perl -ple'$_=reverse' <<<ti.xittelop@oivalf

    Don't fool yourself.