Evan wrote:
> I am trying to learn the foreach loop. Is there a
> place on the web where there are examples for the
> foreach? 

There's good, quick example on Perl Monks:
http://www.perlmonks.org/index.pl?node=foreach%20loops&lastnode_id=954

> Basically I have an array of X elements and
> I want to go from the first element (is it zero?) to
> the last. I have a variable containing the number of
> elements in the array. If the array has 22 elements
> does it go from 0 to 21 or 1 to 22?

It goes from 0 to 21.

It sounds like you're just starting to learn Perl. 
I'd suggest checking out http://learn.perl.org and
purchasing one of their book suggestions.

=====
Dave Hoover
"Twice blessed is help unlooked for." --Tolkien
http://www.redsquirreldesign.com/dave

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Reply via email to