in reply to Re^3: 'grouping' substrings?
in thread 'grouping' substrings?

I hope this isn't too obvious, but how about subtracting one from $+[0]?

Updated per ikegami's reply - duh! I have a bad track record lately...

Replies are listed 'Best First'.
Re^5: 'grouping' substrings?
by ikegami (Patriarch) on Feb 01, 2006 at 17:02 UTC
    --$+[0] doesn't work ("Modification of a read-only value attempted"), but $+[0] - 1 will.