in reply to Help creating a function

The problem is that new is not a Perl keyword. A package can call it's constructor anything it likes, Bob for example.

You can create a bless'ed reference to any package, but you would need to know what type it should reference (scalar, array, hash, whatever), and how to initialise the structure.