in reply to 2d array problem: unexpected output

For starters, when you refer to a single element of an array use a starting $ not an @. Then use separate brackets for each dimension, more like this:
$sbox[$i][$j] = $input[$y]
Also, you might try Data::Dumper which will show you your structures:
use Data::Dumper; Dumper( \@array );

Phil

Replies are listed 'Best First'.
Re^2: 2d array problems
by punklrokk (Scribe) on Apr 27, 2006 at 20:42 UTC
    Well, It worked!!!! Yay! Don't know where I got my syntax from, but thanks guys!! JP Bourget (punklrokk) MS Information and Security Rochester Institute of Technology Rochester, NY