Re: How to undine a value

2004-04-02 Thread Wiggins d Anconia
I find I'm undefining variables my assigning an unitialized variable to defined value to make it undefined (as exemplified below). Is there a better way to do this? my $k; for($i = 0; $i $c; $i++){ if ( defined $k ){ print $x[$k]; my $t; # intentionally undefined

Re: How to undine a value

2004-04-02 Thread WC -Sx- Jones
Wiggins d Anconia wrote: my $k; for($i = 0; $i $c; $i++){ if ( defined $k ){ print $x[$k]; my $t; # intentionally undefined $k = $t; # undefine $k } else { $k = $i; } } Unless this is a contrived example, just increment $i by 2 each loop. If it is contrived then

How to undine a value

2004-04-01 Thread Richard Heintze
I find I'm undefining variables my assigning an unitialized variable to defined value to make it undefined (as exemplified below). Is there a better way to do this? my $k; for($i = 0; $i $c; $i++){ if ( defined $k ){ print $x[$k]; my $t; # intentionally undefined $k = $t; #

Re: How to undine a value

2004-04-01 Thread Randy W. Sims
On 4/1/2004 11:46 PM, Richard Heintze wrote: I find I'm undefining variables my assigning an unitialized variable to defined value to make it undefined (as exemplified below). Is there a better way to do this? my $k; for($i = 0; $i $c; $i++){ if ( defined $k ){ print $x[$k]; my

Re: How to undine a value

2004-04-01 Thread WC -Sx- Jones
Richard Heintze wrote: my $t; # intentionally undefined $k = $t; # undefine $k Just for clarity - This isn't undefining it is assignment of nothing to $k; my $nothing; print \n\$nothing\'s Value: $nothing and \$nothing\'s length . length $nothing; my $somthing = 100; $somthing =