in reply to parsing a scalar into an Array

Do you mean that you want to split that string into an array, where each elements is one of those substrings ("bob", "299", etc.)?

If so, use split:

my $string = "bob 299 frank 107 ted 300"; my @array = split /\s+/, $string;
If that's not what you're asking, could you be more specific?

Replies are listed 'Best First'.
RE: Re: parsing a scalar into an Array
by BigJoe (Curate) on May 16, 2000 at 06:25 UTC
    Cool these work. Thanks a million you guys!!!