> > > Now I am trying to break up string into > individual > > > chars, but this does not seem to work: > > snip > > > > The idiomatic way is > > > > for my $chr (split //, $str) { > > } > > Funny I had to explain split /|/, $str returning an > array of characters. > > -- > Ken Foskey > FOSS developer >
Excellent Ken, thank you, but why the pipe | and how does this differ from ' ' or \s+. I used Dumper and it showed the array of chars, but want to understand. ____________________________________________________________________________________Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. http://mobile.yahoo.com/go?refer=1GNXIC -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/