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
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
may not be correct and someone will enlighten us
if it is incorrect.
-Original Message-
From: Rowe, Sean D. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 08:53
To: [EMAIL PROTECTED]
Subject: Problem with split
I have a string that is delimited by the '|' cha
I have a string that is delimited by the '|' character. I pass this string
to a sub, and within the sub I break it apart using split
my @Array = split(/|/, $_[1]);
When I print out the array, I find that split has broken the string apart
character by character, and not by the delimiter.