RE: [Perl-unix-users] split on array

2005-06-02 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[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 > # > -

Re: [Perl-unix-users] split on array

2005-06-02 Thread Dave Blakemore
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#

RE: [Perl-unix-users] split on array

2005-06-02 Thread AITHA, BHEEMSEN \(SBCSI\)
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

RE: [Perl-unix-users] split on array

2005-06-02 Thread brian . barto
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