On Fri, 2007-05-11 at 10:46 -0700, oryann9 wrote: > > > > 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.
I took me a while to notice that the pipe is a meta character. It is matching an empty string or another empty string. So /|/ is actually equivalent to // or // -- Ken Foskey FOSS developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/