--- 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 --
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
--- 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
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