[EMAIL PROTECTED] wrote:
> Hi,
>
> I am not able to split a string and build an array. I am reading the
> lines from a file. I could not understand what I am doing wrong here.
>
> My code is below:
>
> #!/usr/bin/perl -w
> #
> -
you need \s+ rather than \s* in your split statement."AITHA, BHEEMSEN (SBCSI)" <[EMAIL PROTECTED]> wrote:
Hi,I am not able to split a string and build an array. I am reading thelines from a file. I could not understand what I am doing wrong here.My code is below:#!/usr/bin/perl -w#
Title: Message
Thanks. It
worked.
-Original Message-From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 02, 2005 10:10 AMTo: AITHA,
BHEEMSEN (SBCSI)Subject: Re: [Perl-unix-users] split on
arrayI think it's what
you're splitting o
A quick suggestion. Try changing \s* with \s+ so the split line looks like
this:
( $wc_cd, $ind, $dm1, $row_ct, $dm2 ) = split(/\s+/,$row);
See what that does...
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
AITHA, BHEEMSEN (SBCSI)
Sent: Thursday, June 02