Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Name "main::a" used only once: possible typo

by toolic (Bishop)
on Mar 05, 2013 at 18:58 UTC ( #1021892=note: print w/replies, xml ) Need Help??


in reply to Name "main::a" used only once: possible typo

One way to silence the warnings is to disable them in a localized scope:
use warnings; use strict; use List::Util qw/reduce/; { no warnings qw(once); print reduce { $a * $b } 1..6; }

Update: added "once"

Update: Refer to the following discussion: https://rt.cpan.org/Public/Bug/Display.html?id=65629

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021892]
help
Chatterbox?
[karlgoethebier]: now it's getting weird...
[GotToBTru]: 'getting'?
[Discipulus]: why karlgoethebier ?
[GotToBTru]: ugh .. what's the term for comparing versions of an algorithm to determine which is most efficient?
[hippo]: Benchmarking?
[GotToBTru]: hippo++
erix .oO( apparently but does not GotToBFast )

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2017-06-22 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (519 votes). Check out past polls.