my $obj = Orderconfirmer->new; $obj->fetchdata(type => all); $obj->fetchdata(name => 'foo'); $obj->createinvoice(type => 'msword', name => 'foo);