Sorry for the confusing post, here is a little better explanation:

I am trying to create multi-dimensional arrays

        $MyArray[ 2 ][];  


So I can do this:

        $MyArray[ 0 ][ 0 ] = 2;
        $MyArray[ 0 ][ 1 ] = 3;

        $MyArray[ 0 ][ 0 ] = 4;
        $MyArray[ 1 ][ 1 ] = 5;
        $MyArray[ 2 ][ 2 ] = 6;

But what I really want to do is this :

        push( @MyArray[0], 2 );
        push( @MyArray[0], 3 );

        push( @MyArray[1], 4 );
        push( @MyArray[1], 5 );
        push( @MyArray[1], 6 );


Which will eventually result in this:

        print " $MyArray[ 0 ][ 0 ] \n";
        print " $MyArray[ 0 ][ 1 ] \n";

        print " $MyArray[ 1 ][ 0 ] \n";
        print " $MyArray[ 1 ][ 1 ] \n";
        print " $MyArray[ 1 ][ 2 ] \n";



But the push statements are barfing


Mike



Reply via email to