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);
|
---|
In Section
Seekers of Perl Wisdom