On Mon, 2006-08-05 at 22:35 +0200, Dani Pardo wrote: > On 5/8/06, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: > > > Do you mean to break the elements on whitespace? > > > > my @new_array = map { split } @arry; > > Sorry but, can you explain the brackets? I just don't get it. Wich is > the difference from > > map(split(/ /), @array); >
First, I'll let others explain it: perldoc -f map perldoc perlretut # search for /whitespace/i perldoc perlre # search for /whitespace/i If you still have questions, please mail them to the list as I do always have time to answer your questions. By send them to the list, you are will get a response sooner (most times). -- __END__ Just my 0.00000002 million dollars worth, --- Shawn "For the things we have to learn before we can do them, we learn by doing them." Aristotle * Perl tutorials at http://perlmonks.org/?node=Tutorials * A searchable perldoc is at http://perldoc.perl.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>