Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by AnomalousMonk (Canon)
on Mar 11, 2013 at 17:27 UTC ( #1022837=note: print w/replies, xml ) Need Help??


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

I was just interested in more options.

This is kind of old-school and amounts to the same thing as sticking an  our ($a, $b); statement somewhere, but it's another option:

>perl -wMstrict -le "use List::Util qw/reduce/; use vars qw($a $b); ;; print reduce { $a * $b } 1..6; " 720

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1022837]
help
Chatterbox?
[shmem]: karlgoethebier the blue pain comes after all bembels are empty
[karlgoethebier]: Confusing "Bembel" with "Membel" might result in a slap in the face in Hesse...
[karlgoethebier]: shmem: Yes. Greetings from Dr. Freud
[Discipulus]: blue pain is a synōnymía
[karlgoethebier]: Discipulus: Just a typo in this case ;-)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2017-05-24 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?