in reply to An Introduction to Literate Programming with perlWEB

Just to highlight one of BrowserUK's points about duplication causing errors, your code has a subroutine called spl (L) but your documentation refers to a subroutine called sp1 (one).

#<sp1#>
versus
sub spl{
I think this is known as an "own goal" :-)

Replies are listed 'Best First'.
Re^2: An Introduction to Literate Programming with perlWEB
by adamcrussell (Hermit) on Jan 13, 2009 at 18:15 UTC
    The module name need not match the name of the subroutine. There is no "error" nor is there any "duplication". By seperating the subroutine into a named section is not duplicatng it but, rather, giving it more descriptive value. I will admit that I can see the point of your confusion though. I have renamed the module to be more descriptive.