array handling in perl

  • Thread starter Folkert van Heusden
  • Start date
F

Folkert van Heusden

Hi,

I have 2 arrays:
$b[0...7][0...7]
$s[0...7][0...7]
on which I would like to do
- set each field to ' ' ($b) and to 0 ($s)
- make a copy of both whole arrays into other arrays

Now normally I would for($y=0; $y<8; $y++){for($x=0;$x<8;$x++){ $b[$y][$x] =
' '; } } but I'm trying to find something faster.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top