Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: pairwise() doesn't seem to work...

by Corion (Pope)
on Oct 06, 2010 at 09:19 UTC ( #863740=note: print w/replies, xml ) Need Help??

in reply to pairwise() doesn't seem to work...

You need to import pairwise from List::MoreUtils. It seems that Perl interprets pairwise { ($a, $b) } as indirect object notation otherwise:

use List::MoreUtils qw( pairwise );

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://863740]
[stevieb]: in a C++ header file, if a function declaration is listed twice with each listing containing different params, that's just essentially allowing one function accept two different arg lists, yes?
[stevieb]: int func(int x, int y);
[stevieb]: int func(int x);
[stevieb]: For example

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-06-28 23:52 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (653 votes). Check out past polls.