Connecting Tech Pros Worldwide Forums | Help | Site Map

array handling in perl

Folkert van Heusden
Guest
 
Posts: n/a
#1: Feb 13 '07
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.

--
--------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com



Closed Thread