in reply to Useless use of private variable
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Useless use of private variable
by Sun751 (Beadle) on Jul 15, 2009 at 03:10 UTC | |
by Marshall (Canon) on Jul 15, 2009 at 04:40 UTC |