Is there any way I can just say:

use ISO::types::ILLString;
my $s = new ILLString("This is a string");

First, what you're talking about isn't object related. It's just package functions.


You need to look at the Exporter module. Bascially, you want to do this (off the topof my head)

package ISO::types::ILLString;

use Exporter;
our @EXPORT = qw( ILLString );

sub ILLString {
        # blah blah blah
}

1;

Now, whenever you say "use ISO::types::ILLString", you get ILLString imported into your namespace.

xoxo,
Andy

--
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Reply via email to