Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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:

Comment on Re: Name "main::a" used only once: possible typo
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2015-11-28 07:03 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (739 votes), past polls