in reply to two-dimensional arrays

Your push statement needs to look like this:
push (@group_ary[$mod_val],$files[$psh_lp]);
The way you are trying is creating a 3-d array with each array containing one element.

Replies are listed 'Best First'.
Re: Re: two-dimensional arrays
by abstracts (Hermit) on Aug 08, 2001 at 19:31 UTC
    Hello

    Type of arg 1 to push must be array (not array slice). You meant: push (@{$group_ary[$mod_val]},$files[$psh_lp]); I know I know, minor stuff.

    Aziz,,,