if i dont want to loose that variable scope & also i want to use strict then how can i edit it
Its simple, use another variable that isn't $row
my $what; for my $row ( $min .. $max ){ if( $data == $required ){ $what = $row; last; } } print "Data presented in:: $row \n";
In reply to Re^3: usage of "my" keyword (quibble re clarity)
by Anonymous Monk
in thread usage of "my" keyword
by ravi45722
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |