Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Evaluating Multidimensional Arrays and Referencesby mr_dont (Beadle) |
on Aug 10, 2001 at 19:41 UTC ( [id://103915]=perlquestion: print w/replies, xml ) | Need Help?? |
mr_dont has asked for the wisdom of the Perl Monks concerning the following question: Hi PerlMonks! Last night I was writing a script and I was stumped by its behaviour... Basically, it contains a data object which is a hash containing a multidimensional array (a 2n one)... So I might have data like this: @{$self->{_mydata}[2][3]} = "John"; In one of my methods, when I print this out,
it gives my the correct answer:
However, when I try to evaluate it, It doesn't work:
The above code won't print anything... Why isn't this working? Anyone know what I am doing wrong?
Back to
Seekers of Perl Wisdom
|
|