in reply to pass cgi object?

"use strict" doesn't mean "no global variables", it means "if you use a global it must be qualified with a package name". Since your global is qualified with "$::", which is the same thing as "$main::", you should have no problem with it.

Maybe we need to see your subroutine code.