On Thu, 2007-05-10 at 15:32 -0400, Chas Owens wrote:
> On 5/10/07, oryann9 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to