in reply to why does location of function matter?
And the obligatory links: Prototypes and especially Far More than Everything You've Ever Wanted to Know about Prototypes in Perl -- by Tom Christiansen.
Give a man a fish: <%-(-(-(-<