Re: regexp ... On Thu, 2007-05-10 at 15:32 -0400, Chas Owens wrote:
> On 5/10/07, oryann9  wrote:
> snip
> > 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


-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/


