#---------------------------------
	# updating an existing record
	#---------------------------------

	use MySchema;

	$obj = MySchema->new('primary-field-value-to-lookup');
	defined($obj) || die "no record found for 'primary-field-value...'";

	$obj->name('Barney Rubble');
	$obj->address("1 Granite Ave\nblah blah");
	$obj->write;                # performs update