Hi Michael,

A couple others have already advised you on Perl arrays, so for your immediate issue, 
I'd say go with their advice.  Bear in mind though, that Perl arrays will not teach 
you the standards for managing arrays that you need in orfer to be truly portable in 
your programming skills.

I can see by your code that you have already been taken in by one Microsoftian 
convenience.  M$ allows element n in an array declared of size n to accomodate people 
whoi can't grasp 0-based arrays.  It is also a handy way to keep people addicted to 
their products.  Using that final element in any standard language using real arrays 
will crash your program.  Essentially, the code you have written uses up your margin 
of safety, a margin that doesn't exist in most other languages.

Please--even in VB, leave that last element alone.  If anything, set it explicitly to 
null to use as an overflow marker

Joseph

Michael Kramer wrote:

> I need to make an array with multiple levels example:
> I'm new to perl and have been programming in VBscript for about 2 years now
> so the code here is in vb because i know that better.
>
> dim my_array(1,3)
> my_array(0,0) = "fred"
> my_array(0,1) = "John"
> my_array(0,2) = "mike"
> my_array(0,3) = "dork"
>
> my_array(1,0) = "mary"
> my_array(1,1) = "sally"
> my_array(1,2) = "stacy"
> my_array(1,3) = "bigger dork"
>
> response.write my_array(0,3)  'aka. "dork"
>
> It's like an array inside an array.  I figured our arrays but hashes are
> still a little weird.  This might be a perfect problem fixed by hashes.
> Thanks to anyone who understands and tells me how to do this.
>
> Michael Kramer
> [EMAIL PROTECTED]


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

Reply via email to