in reply to Re: "Called to early to check prototype"
in thread "Called to early to check prototype"

Update: I'm pretty sure the warning is due to the code calling ParseHomePage() before it has been defined so the interpreter can't check the argument list is acceptable.

If you run "perldoc perlsub" (in your shell) or just go to perlsub you can read how prototypes work.

I often write scripts like the following but you can put the actual subroutine code at the top before you call it instead of the declaration.
#!/usr/bin/perl use strict; # subroutines --------------- sub abc($$); # abc() does x,y,z # main() -------------------- ... # subroutines --------------- sub abc($$) { # abc() does x,y,z # inputs: ... # returns: ... # function code here }