I read all the manuals above suggested. But i have a small doubt
#!/usr/bin/perl use strict; # my $row; . . for $row ($min..$max) { if($data == $required) { last; } } print "Data presented in:: $row \n";
Here i am declaring the $row above the for loop. But the $row loosing its scope after the for loop. As per documents the scope of my variable does not lose.
if i dont want to loose that variable scope & also i want to use strict then how can i edit it
In reply to Re^2: usage of "my" keyword (quibble re clarity)
by ravi45722
in thread usage of "my" keyword
by ravi45722
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |