in reply to Re^2: Problem with GetOptions
in thread Problem with GetOptions

Whitespace before the | is allowed (even tabs and newlines!), so you may want to check for that also. If $log has a trailing | or leading <, removing your >> may also be not what you want, but those cases you probably ought to treat as input errors, along with |- (which also can have whitespace between the two chars).

Replies are listed 'Best First'.
Re^4: Problem with GetOptions
by robinbowes (Beadle) on Dec 23, 2004 at 17:10 UTC
    ysth,

    Thanks for the suggestions.

    For the my purposes, I'm happy to keep it simple and to fail on anything other than a leading "|".

    Thanks again,

    R.

    --

    Robin Bowes | http://robinbowes.com