Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by LanX (Saint)
on Mar 11, 2013 at 13:40 UTC ( [id://1022797]=note: print w/replies, xml ) Need Help??


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

cause it doesn't work?

use List::Util qw/reduce/; print reduce { $_[0] * $_[1] } 1..6; __END__ Use of uninitialized value in multiplication (*) at /home/lanx/B/PL/PM +/ScopeListUtils.pl line 23. ...

Cheers Rolf

Replies are listed 'Best First'.
Re^3: Name "main::a" used only once: possible typo
by mithaldu (Monk) on Mar 11, 2013 at 17:48 UTC
    Well damn. I was sure i had used that on List::Util stuff to get around $a/b warnings. Guess i misremembered.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-09-08 18:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.