in reply to How do I combine SPLIT with trimming white space
Thanks again.foreach my $entry ( split( /;/, $file_data ) ) { do { s/^\s+//; s/\s+$//; } for $entry; push @email_list, $entry; } print join( "\n", sort(@email_list)), "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I combine SPLIT with trimming white space
by codeacrobat (Chaplain) on Aug 11, 2009 at 20:36 UTC |