The "useless use of private variable" refers to the $s in your for loop because the variable is never being used.
A more perlish way of looping over a bit of code a fixed number of times (one of many ways actually) is
foreach (1 .. $s_no)
Sandy
In reply to Re: Useless use of private variable
by Sandy
in thread Useless use of private variable
by Sun751
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |