in reply to Grabbing anything between pipe delimiters

You could also use Text::CSV_XS. It is designed for comma seperated data, but you can set the character to be used as a seperator to what ever you want. That would even handle data like:

some field|another field|"field with | in it"|more fields
May the Force be with you

Replies are listed 'Best First'.
Re^2: Grabbing anything between pipe delimiters
by dragonchild (Archbishop) on Feb 25, 2005 at 20:47 UTC
    Text::xSV is better as it handles more edge cases.

    Being right, does not endow the right to be rude; politeness costs nothing.
    Being unknowing, is not the same as being stupid.
    Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
    Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.