If you add strict & warnings to the top of your module, perl will tell you why.
The start of some sanity?
In reply to Re: ...unblessed reference... by BrowserUk in thread ...unblessed reference... by programmer.perl