Gufranul Haque wrote:
> Hello all,
> 
> I need to process a record
> 
> Key1   3.00 4.00    5.00
> 
> I need to trap spaces between nonwhitespace characters as array
> elements i.e for the above record the resulting array should be
> ('   ',' ','    ')
> 
> The staement that I am using
> 
> my @spaces = map /(\s+)/, $_;
> 
        Just a a g to /(\s+)/g and it will do what you want. You and I think like 
split but you need the g otherwise it will get the first space and quit.  Add the g 
and it works like you expect.
Wags ;)


**********************************************************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
****************************************************************


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to