in reply to Functions Signatures

Question's been answered, but I have one of my own. Um, why would you feel the need to do this?

When I write scripts I put all subroutines at the end of the script, and don't have any problems calling them in the main portion of the script.

Maybe it's just for developer information so they don't have to scroll to where your subs are to see what's available?

Replies are listed 'Best First'.
Re: Re: Functions Signatures
by blue_cowdawg (Monsignor) on Jul 17, 2003 at 16:24 UTC

    Maybe it's just for developer information so they don't have to scroll to where your subs are to see what's available?

    That's what comments are for. If you insist, put a set of comments in the beginning of your code that provide an "index" to the functions you define.

    Better yet, make it POD so you can do neat things later on like generate MAN pages, HTML, etc.


    Peter L. BergholdBrewer of Belgian Ales
    Peter@Berghold.Netwww.berghold.net
    Unix Professional
      Well, yes, that would be my approach. But it was the best idea I could come up with for doing this.
Re: Re: Functions Signatures
by dragonchild (Archbishop) on Jul 17, 2003 at 15:42 UTC
    If they're that lazy that they won't use a search function .....

    ------
    We are the carpenters and bricklayers of the Information Age.

    Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

    Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.