Raoul Ripmeester schreef:

> How can I make the split to work with one or multiple space.

What you aim for, is already the default behaviour of split.

  perldoc -f split

"If PATTERN is also omitted, splits on whitespace (after 
skipping any leading whitespace). [...]
As a special case, specifying a PATTERN of space (' ') will
split on white space just as "split" with no arguments does."

So change your 

  split(/ /,$_)

into 

  split ' '

or even into just

  split

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


Reply via email to