in reply to Split criteria

Could you try working with zero-width look-behind and look-ahead assertions, that make sure you'll only split on , between two ! characters?

Try to split with this:
my @data = split /(?<=!),(?=!)/,$_;
This only works if all your data is guaranteed to be embedded in a pair of exclamation marks.

Replies are listed 'Best First'.
Re^2: Split criteria
by harishnuti (Beadle) on Nov 06, 2008 at 06:57 UTC

    Thanks for this, i got clear idea on splitting.. once again thanks to all, my purpose is solved from above