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; # undefine $k
   } else {
      $k = $i;
   } 
}     

__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to