in reply to passing a value to a function


Thanks for everyone's help. Actually cleararray is a little misleading. I need an array of zeros to get the program to fall through graphically. Is there a better algorithm to handle just that?
john
Faster, faster, faster....till the thrill of speed overcomes the fear of death -Daniel Keys Moran

Replies are listed 'Best First'.
Re: Re: passing a value to a function
by PrakashK (Pilgrim) on Jun 26, 2001 at 18:18 UTC
    # populate the array with zeroes sub cleararray { my ($class, $radiovar) = @_; my @array; push @array, [ (0) x $radiovar ] for 1 .. $radiovar; return \@array; }