In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Shannon Murdoch) wrote:
> > From: [EMAIL PROTECTED] (Kevin Meltzer) > > my @codes = split(/\s+/,$all_codes); > Worked like a charm. While we're on the topic of deletion/exclusion of > string elements when brought in to an array, how do I kill '\n' line breaks > from the string (or even just exclude them at array input time)? > > ie. 'hello how are you /n I am fine' > becomes (hello,how,are,you,I,am,fine) when in the array. since a newline is whitespace, Kevin's example still works. :) -- brian d foy <[EMAIL PROTECTED]> - Perl services for hire CGI Meta FAQ - http://www.perl.org/CGI_MetaFAQ.html Troubleshooting CGI scripts - http://www.perl.org/troubleshooting_CGI.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]