in reply to Re^2: usage of "my" keyword (quibble re clarity)
in thread usage of "my" keyword
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: usage of "my" keyword (quibble re clarity)
by ravi45722 (Pilgrim) on Aug 20, 2015 at 07:22 UTC | |
by Anonymous Monk on Aug 20, 2015 at 07:26 UTC |