in reply to "my sub" error

The problem is with the module. It seems to be trying to use lexically scoped subroutines - and Perl doesn't support those (yet).

The error is listed in perldiag.

"my sub" not yet implemented
(F) Lexically scoped subroutines are not yet implemented. Don't try that yet.

(The 'F' stands for Fatal).

Any program using this module will fail to compile. I'd suggest that's worth a bug report.

Update: Oops. tye is absolutely right. My theory is disproved by inconvenient facts :)

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Replies are listed 'Best First'.
Re^2: "my sub" error (Spiffy)
by tye (Sage) on Nov 07, 2006 at 14:15 UTC

    Nice theory and fairly reasonable on the surface, but if you check the CPAN Testers reports for this module, you'll see that it passes tests and the failures are not (as far as I saw) due to this syntax.

    It turns out that this syntax is a feature of Spiffy. My first somewhat wild guess is that we've got the classic failure of a badly designed source filter by someone with too much hubris to realize that they aren't good enough at parsing Perl to pull this off.

    Update: Spiffy's source filter doesn't appear to try to parse Perl, as near as I can tell.

    - tye