in reply to Currying--useful examples?

This node as well as some of the replies might have some more useful examples/applications.

Also, there's a fairly useful module on CPAN that makes use of what at first glance I thought was currying - check out File::Next by our very own petdance.

Updated: added bold text. I was just so excited by hearing about petdance's module.



--chargrill
s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)

Replies are listed 'Best First'.
Re^2: Currying--useful examples?
by petdance (Parson) on Jan 11, 2007 at 01:05 UTC
Re^2: Currying--useful examples?
by petdance (Parson) on Jan 11, 2007 at 16:22 UTC
    By the way, what does "our very own petdance" mean? "Our" seems to imply membership in a group. I'm concerned what group that would be. :-)

    xoxo,
    Andy

      I suppose it's possible (even likely?) for there to be clever modules on CPAN by authors who don't frequent PerlMonks, so the group I'm including you in is "those who frequent PerlMonks". :-)

      I could also possibly be grouping you into Chicago Perl Mongers, but as the audience reading PerlMonks is far greater larger than the Chicago Perl Mongers group, that wouldn't be very clear from the context of the post.

      :-)

      Updated: True, we have some excellent folk in Chicago Perl Mongers and I wouldn't want them to feel slighted by my careless choice of words. ;)



      --chargrill
      s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)
        the audience reading PerlMonks is far greater than the Chicago Perl Mongers group

        Well, let's say it's "larger" not "greater". :-)

        xoxo,
        Andy