[tpm] Subroutine arcana
mfowle at navicominc.com
Mon May 14 07:18:23 PDT 2007
>From Programming Perl 3rd edition Chapter 8 - there is a not on nested
Stating that named subroutines do not nest properly but anonymous ones do.
From: toronto-pm-bounces+mfowle=navicominc.com at pm.org
[mailto:toronto-pm-bounces+mfowle=navicominc.com at pm.org] On Behalf Of
arocker at vex.net
Sent: Monday, May 14, 2007 10:04 AM
To: tpm at to.pm.org
Subject: [tpm] Subroutine arcana
Does anyone know if it is legitimate to use an anonymous subroutine in a
named one? I've run across a case in someone else's code, and the
expression using the anonymous routine simply seems to be ignored, neither
executing nor generating a complaint.
I believe, (and taught), that named subroutines cannot be nested, but when
I sought guidance in the canon, it was strangely silent about the nesting
of either type.
toronto-pm mailing list
toronto-pm at pm.org
More information about the toronto-pm