You can put the subroutine definition just about anywhere. But if you're going to declare prototypes, that must happen before your first call to the sub.
Just don't use prototypes. You really don't need them, really.
Dave
Comment on Re: Re: Re: Strange error in GD::Graph::Map