On Mon, Nov 24, 2008 at 10:05, John W. Krahn <[EMAIL PROTECTED]> wrote: > sanket vaidya wrote: >> >> Hi all, > > Hello, > >> Kindly look at the code below: >> >> my ($bi, $bn, @bchrs); > > $bi starts out at 0. > >> my $boundry = ""; >> foreach $bn (48..57,65..90,97..122) { >> >> $bchrs[$bi++] = chr($bn); > > $bchrs[ 0 ] is assigned a value and then $bi is incremented to 1. snip
Minor nitpick to avoid latter confusion. $bi starts out as undefined. It just so happens that saying $bi++ returns 0 the first time due to a bit of magic in the ++ operator. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/