And you can prevent the used only once warning, by using them twice. Eg. add a line $a = $b;.
use vars qw($a $b); will also quiet the warning.
But I don't understand why the warning should arise in the first place, especially from the use of such a common module as List::MoreUtils. The warning is not triggered by the solitary presence of $a and $b in the comparison block of the sort built-in. If this is an issue with List::MoreUtils and its ilk, shouldn't this be taken care of within the module somehow (but don't ask me how)?
In reply to Re^2: converting strings to ints
by AnomalousMonk
in thread converting strings to ints
by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |