Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by Khen1950fx (Canon)
on Mar 06, 2013 at 03:33 UTC ( #1021941=note: print w/ replies, xml ) Need Help??


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

Maybe this is satisfactory?

#!/usr/bin/perl -l use strict; use warnings FATAL => 'syntax'; use List::Util qw/reduce/; print reduce( sub { $a * $b; }, 1..6);


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2014-09-02 10:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (21 votes), past polls