Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: two-dimensional arrays

by c-era (Curate)
on Aug 08, 2001 at 18:37 UTC ( [id://103064]=note: print w/replies, xml ) Need Help??


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,,,

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://103064]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-19 20:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found