Actually, after I sent that code, I believe the split command should have been something like: @myVar = split( /\s+/ ); So that one or more white spaces are removed at one time. But you need to experiment to find out what will work best for you. :-) ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch