Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: "Only Used Once" warning for lexicals

by Athanasius (Archbishop)
on Aug 06, 2015 at 13:30 UTC ( [id://1137678]=note: print w/replies, xml ) Need Help??


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.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1137678]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-20 04:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found