in reply to Re: declaration of variables
in thread declaration of variables
or would/could you use:1: my $tempstring; 2: for $i (1...10) { 3: for $j (1...10) { 4: $tempstring .= $array[$j]; } 6: $final[$i] = $tempstring; 7: $tempstring = ""; }
or7: my $tempstring;
or is that declaring it too many times? or is using undef has bad as I've read?7: undef $tempstring;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
3Re: declaration of variables
by jeffa (Bishop) on Sep 02, 2003 at 15:32 UTC | |
by bradcathey (Prior) on Sep 02, 2003 at 15:47 UTC | |
|
Re: Re: Re: declaration of variables
by davido (Cardinal) on Sep 02, 2003 at 17:01 UTC | |
|
Re: Re: Re: declaration of variables
by tilly (Archbishop) on Sep 03, 2003 at 04:56 UTC |