Re: Problem with split

2002-09-25 Thread Michael Fowler
On Wed, Sep 25, 2002 at 11:17:18AM -0500, Wagner, David --- Senior Programmer Analyst --- WGO wrote: > Because the | is part of the regex which allows for (a|b|c| which > says if a or b or c. Also known as alternation. > So what you have is basically I believe null or null which comes do

RE: Problem with split

2002-09-25 Thread Rowe, Sean D.
I see. Thanks! Sean -Original Message- From: Rowe, Sean D. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 10:53 AM To: [EMAIL PROTECTED] Subject: Problem with split I have a string that is delimited by the '|' character. I pass this string to a sub, and within the sub

RE: Problem with split

2002-09-25 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Because the | is part of the regex which allows for (a|b|c| which says if a or b or c. So what you have is basically I believe null or null which comes down to split(,$_[1]). What you want would be to escape the | like \|, so you would have split(/\|/, $_[1]); Wags ;) ps My terminology