[ABE.pm] Functional programming in Perl

Ted Fiedler fiedlert at gmail.com
Tue Sep 12 06:03:54 PDT 2006


Here is a link to some info on perl monks as well.

http://perlmonks.org/?node_id=492651

Ted

On 9/11/06, Ricardo SIGNES <rjbs-perl-abe at lists.manxome.org> wrote:
> * "Faber J. Fedor" <faber at linuxnj.com> [2006-09-11T18:39:53]
> > Can we do functional programming in Perl as outlined on this page?
> >
> > http://www.joelonsoftware.com/items/2006/08/01.html
>
> Yes.
>
>   sub PutInPot { ... }
>
>   Cook('lobster', 'water', \&PutInPot);
>
> Or:
>
>   Cook('lobster', 'water', sub { alert("pot $_[0]") });
>
> I use this sort of programming on a daily basis, and it is extremely powerful.
>
> Mark-Jason Dominus's amazing book Higher-Order Perl discusses this kind of
> program in great detail and with great clarity.
>
> I'll see if I can't find better free resources for functions-as-data in Perl.
>
> See perldoc perlsub, too
>
> --
> rjbs
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (GNU/Linux)
>
> iD8DBQFFBh2J5IEwYcR13KMRAmUJAJ9TCq2YkP3ZVVXxR3cgY3BfCkGxtwCdHJec
> XeakeMqKFjVmHi3UbtDxuXI=
> =EEV6
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> ABE-pm mailing list
> ABE-pm at pm.org
> http://mail.pm.org/mailman/listinfo/abe-pm
>
>


-- 
"You are never dedicated to something you have complete confidence in.
No one is fanatically shouting that the sun is going to rise tomorrow.
They know it's going to rise tomorrow. "
  -- Robert M Pirsig


More information about the ABE-pm mailing list