Re: regex to split whitespace-separated values

2007-01-09 Thread Ovid
--- Rob Dixon <[EMAIL PROTECTED]> wrote: > The default behaviour can be invoked explicitly by using a single > space as the > separator parameter for split. So > > my @array = split ' ', $line; > > has the desired effect. Ah, thank you. I didn't know that :) Cheers, Ovid -- Buy the book --

Re: regex to split whitespace-separated values

2007-01-09 Thread Rob Dixon
Ovid wrote: > --- Bram Kuijper <[EMAIL PROTECTED]> wrote: > >> I have a single line of whitespace separated values, e.g.: >> >>50 100 >> 150 200 300 50 >> >> Now I want to split these values into an array using split, li

Re: regex to split whitespace-separated values

2007-01-09 Thread Ovid
--- Bram Kuijper <[EMAIL PROTECTED]> wrote: > I have a single line of whitespace separated values, e.g.: > >50 100 > 150 200 300 50 > > Now I want to split these values into an array using split, like: > > my @array

regex to split whitespace-separated values

2007-01-09 Thread Bram Kuijper
Hi all, this is a real beginner question, but I don't seem to find a good solution: I have a single line of whitespace separated values, e.g.: 50 100 150 200 300 50 Now I want to split these values into an array usin