in reply to Re^2: Best practices passing database handles, cgi objects, etc.
in thread Best practices passing database handles, cgi objects, etc.

I usually include all the functionality into the class so I do not have to care about its implementation in the main application. Therefore, I would use
$myapp->header

instead of

CGI->header

If you later decide you need to change something in the header (e.g. the encoding/charset), you just edit the header method of the class.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ