Hi, On 8/29/12, timothy adigun <2teezp...@gmail.com> wrote:
>> for(my $i=0; $i <= length(@startSite)-1; $i++) { > > The above could be: > for(my $i=0; $i <= scalar (@startSite); $i++) { > ... for(my $i=0; $i <= scalar (@startSite); $i++) { ## Oops for(my $i=0; $i <= scalar (@startSite)-1; $i++) { ## working I probably write the above like so: foreach my $i (@startSite){ ... print $i,$/; } foreach takes care of all the job for you. -- Tim -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/