in reply to "Only Used Once" warning for lexicals

Hello LanX,

Have you looked at warnings::unused?

23:27 >perl -Mwarnings::unused -wE "my $n = 42; say 'hello!';" hello! Unused variable my $n at -e line 1. 23:28 >

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Replies are listed 'Best First'.
Re^2: "Only Used Once" warning for lexicals
by choroba (Cardinal) on Aug 06, 2015 at 13:48 UTC
    warnings::unused claims itself unmaintained and recommends Test::Vars by the same author.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ