Connecting Tech Pros Worldwide Help | Site Map

array handling in perl

  #1  
Old February 13th, 2007, 02:45 PM
Folkert van Heusden
Guest
 
Posts: n/a
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