targetsmart has asked for the wisdom of the Perl Monks concerning the following question:
Is there any very good technical reason behind starting the array index at 0, why not at 1??.
Pardon me if this seems to be a simple question to you.
Vivek
-- 'I' am not the body, 'I' am the 'soul', which has no beginning or no end, no attachment or no aversion, nothing to attain or lose.
Pardon me if this seems to be a simple question to you.
UPDATE
in Perl the $[ variable helps us to set the first element in an array, and we can set the number as we wish.
but my doubt is, it makes a lot of sense to say that first index as '1', not as '0'
always first refers to '1', not '0'.
Vivek
-- 'I' am not the body, 'I' am the 'soul', which has no beginning or no end, no attachment or no aversion, nothing to attain or lose.
Back to
Seekers of Perl Wisdom