On 2011-04-08 14:34, Shawn H Corey wrote:
my @words = split /\s+/, $string;
See perldoc -f split, about why you might want to write that as my @words = split ' ', $string;
To get it to not capture any matches, use the non-capture parentheses: @num = split /(?:(?:a|b)+)/, $x;
Does that do anything different from @num = split /(?:a|b)+/, $x; ? -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/