split() returns an array. You can use the grep() function to filter an array based on a RegEx, eg empty string (/^$/)
@arr2 = grep !/$^/, @arr1; This will make @arr2 hold everything in @arr2 except empty elements. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/