Anthony Beaman wrote:
> 
> But what's the "-1" for? Why not just "$b[$a]" instead? That's what I'm confused 
> about.

Suppose that you want the first line so you enter "1".  Because indexing
starts at zero using $b[$a] will print out the second line.  If you
enter "4" for the fourth line $b[$a] will print out the fifth line.  You
have to subtract one from the number entered to get the correct index of
the array.


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to