good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Question about how to return a array in subroutine to form a two dimensional arrayby ww (Archbishop) |
on Aug 05, 2012 at 18:47 UTC ( [id://985561]=note: print w/replies, xml ) | Need Help?? |
Even the fragment shows some of your problems... that is, it would, with use strict; use warnings and a few print statements to see what your vars actually hold:
No, this won't bork your system; TITS -- " ...try it to see!" And for your next step toward mastery, learning the debugger will be a help; better, in most cases than sticking in print statements, willy-nilly, as above.
In Section
Seekers of Perl Wisdom
|
|