Hien Le schreef: > my @bar2 = split( /([a-z]{5})/, $foo ); # Captures white-spaces ?!?
Because of the capturing (), split also returns the separators. See perldoc -f split. Suggestion: my @bar2 = split( /...../, $foo ); -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>