Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Eliminating "used only once" warnings from List::Util::reduce

by BrowserUk (Pope)
on Jul 30, 2013 at 13:45 UTC ( #1047030=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use vars qw(@ISA @EXPORT_OK $VERSION $XS_VERSION $TESTING_PERL_ONLY $a
    + $b );
    require Exporter;
    
    @ISA        = qw(Exporter);
    @EXPORT_OK  = qw(first min max minstr maxstr reduce sum shuffle $a $b 
    +);
    
  2. or download this
    C:\test\primes>perl -Mstrict -MList::Util=reduce,$a,$b -wE" say reduce
    +{ $a +$b } 1,2,3"
    6
    ...
    C:\test\primes>perl -Mstrict -wE"package fred; use List::Util qw[ redu
    +ce $a $b ]; say reduce{ $a +$b } 1,2,3"
    6
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2016-06-27 18:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (341 votes). Check out past polls.