On 3/15/06, John Bruin <[EMAIL PROTECTED]> wrote: > my $string = 'one two three four'; > my @temp = split(/ \s{1,}/,$string);
Your pattern matches a space followed by one or more whitespace characters (such as tab, space, or newline). There's just a single space between "two" and "three", and the pattern needs to match at least two characters, so the pattern can't match there. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>