$interface=""; #$interface can be read from a config file require $interface; #Can't use use because it isn't known at compile time $object=new $interface; #symbolic reference to the interface package #fiddle with my data. $object->update_screen(); #one form of output $item=$object->item(); #creates a sub element $item->update(); #another form of output