Perl Monk, Perl Meditation | |
PerlMonks |
Re: Multidimensional arrays within arraysby reaper9187 (Scribe) |
on Jan 23, 2013 at 17:13 UTC ( [id://1014965]=note: print w/replies, xml ) | Need Help?? |
Thank you muba for the suggestion. I've reformulated the problem to the simplest level. See if you can figure out what is wrong. Following is the sample code I'm thinking of the following solns : 1. Save the references for each of these dereferenced arrays as a variable and save it as a separate array and make the array global (or return it to the parent function and make it global) 2. Save each of the dereferenced arrays as global variables and try to access using Sub B ( what i have been trying but no luck so far). Please suggest.. ( I'm new to perl .. I'm sorry if the above points seem foolish).. Update: I think the naming convention for the array variable seems to be causing the issue Coz when i try to return the references for each of the arrays , it gives me the same scalar value(reference ) for different elements.. I need a way out of this and quick .!! Please help
In Section
Seekers of Perl Wisdom
|
|