in reply to Re^2: 2 dimensional array
in thread 2 dimensional array
But then you access it as if it were a two-dimensional array. (Your code actually will try to use symbolic references; you should enable strict so that when that happens by accident, you are alerted to it.)@table = ( "ADESFJRASLXDFRT\n" "QBRAINOUEWHGYED\n" "RIRURLKUNGEASDV\n" "NAOBXCSTACHUIOL\n" "OJKDGKJGHJUINHR\n" "AHRHOAIDFSETRGH\n" "RXANOGSYEROGATS\n" "TOUDOGSDSAVFTRY\n" "UORTUOFRHRJUIKO\n" "BTIARTHYEUVFGQA\n" );
So, you need to add the code that would turn the above into a two dimensional array. What is each column going to be?
You probably want to chomp(@data) after reading it to get rid of the newlines.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: 2 dimensional array
by mountain_drew (Initiate) on Jun 23, 2008 at 08:29 UTC | |
by ysth (Canon) on Jun 23, 2008 at 14:34 UTC |