in reply to Re: converting strings to ints
in thread converting strings to ints
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)?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: converting strings to ints
by BrowserUk (Patriarch) on Mar 20, 2010 at 21:33 UTC |