On Jan 3, Busse, Rich said: >("Abiosdsk", "Afd", "", "", "", "Aha154x", "Aha174x", "aic78xx", "", >"Alerter", "", "", "", "Always", ...) > >Is there a simple way to get rid of the empty strings and compress the list >down to: > >("Abiosdsk", "Afd", "Aha154x", "Aha174x", "aic78xx", "Alerter", "Always", >....)
I'd use grep(): @compressed = grep length, @array; That only allows elements with a non-zero length to get through. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]